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