def get_output_schema(features: Features) -> dict[str, DataType]:
    """Generate UDF output schema from huggingface datasets features."""
    fields_dict = {}
    for name, val in features.items():
        fields_dict[name] = _feature_to_chain_type(name, val)
    return fields_dict
Generate UDF output schema from huggingface datasets features.
src/datachain/lib/hf.py