def _build_metadata_schema(dataset: FeedbackDatasetBase) -> Type[BaseModel]:
    """Returns the metadata schema of the dataset."""
    return generate_pydantic_schema_for_metadata(
        dataset.metadata_properties, allow_extra_metadata=dataset.allow_extra_metadata
    )
Returns the metadata schema of the dataset.
argilla-v1/src/argilla_v1/client/feedback/dataset/helpers.py