def check_variable_type(allowed_type_funcs):
    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
Util.number.isPrime
dataset/ETHPy150Open zulip/zulip/zerver/lib/validator.py/check_variable_type--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pycrypto-2.6.1/lib/Crypto/SelfTest/Util/test_number.py/MiscTests.test_isPrime