def validator_factory(name, mixin=None, class_dict={}):
    Validator = get_Validator_class()

    if mixin is None:
        bases = (Validator,)
    elif isinstance(mixin, tuple):
        bases = (Validator,) + mixin
    else:
        bases = (Validator, mixin)

    return type(name, bases, class_dict)
Returns: bool, True if 'cmd' is in PATH, False otherwise.
dataset/ETHPy150Open nicolaiarocci/cerberus/cerberus/utils.py/validator_factory--crossover with--dataset/ETHPy150Open m-lab/operator/tools/drac.py/cmd_exists