code: def _parse_fail(name, var_type, value, values):
    
    raise ValueError(
        'Could not parse hparam \'%s\' of type \'%s\' with value \'%s\' in %s' %
        (name, var_type.__name__, value, values))
docs: Helper function for raising a value error for bad assignment.