human
Here's a good function header given the following:
I wrote the below code

    def enumerated_type_check(var_name, val):
        for func in allowed_type_funcs:
            if (not func(var_name, val)):
                return None
        return (_('%s    is    not    an    allowed_type') % (var_name,))
    return enumerated_type_check

What's a good function header?
assistant
#Here's a good function header.

def check_variable_type(allowed_type_funcs):