def one_of(*validators):
def validate(value, should_raise=True):<EOL><INDENT>if any(validate(value, should_raise=False) for validate in validators):<EOL><INDENT>return True<EOL><DEDENT>if should_raise:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>return False<EOL><DEDENT>return validate<EOL>
Returns a validator function that succeeds only if the input passes at least one of the provided validators.

    :param callable validators: the validator functions
    :returns: a function which returns True its input passes at least one of the validators, and raises TypeError
              otherwise
    :rtype: callable