def validate_type(value_type, value):
    """Validates a value given its type"""
    try:
        return TYPE_VALIDATORS[value_type](value)
    except __HOLE__:
        return value
dataset/ETHPy150Open fiam/wapi/validators.py/validate_type