human
Complete this python program:
def check_variable_type(allowed_type_funcs):
assistant
#Here is the Python code you requested.

    """Use this validator if an argument is of a variable type (e.g. processing
    properties that might be strings or booleans).
    `allowed_type_funcs`: the check_* validator functions for the possible data
    types for this variable.
    """
    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