def parse_type(type_str: str) ->type:
    """
    Parse type string to python type.
    Use this function to parse type in schema.

    Args:
        type_str:
            Type string like 'float', 'int', ...
    Returns:
        Python native type
    """
    if type_str == 'float':
        return float
    elif type_str == 'int':
        return int
    elif type_str == 'str':
        return str
    elif type_str == 'bool':
        return bool
    else:
        raise ValueError(f"Unsupported type '{type_str}'.")
