def _validate_record_fields(record: FeedbackRecord, fields_schema: typing.Type[BaseModel]) -> None:
    """Validates the `FeedbackRecord.fields` against the schema defined by the `fields`."""
    try:
        fields_schema.parse_obj(record.fields)
    except ValidationError as e:
        raise ValueError(f"`FeedbackRecord.fields` does not match the expected schema, with exception: {e}") from e
Validates the `FeedbackRecord.fields` against the schema defined by the `fields`.
argilla-v1/src/argilla_v1/client/feedback/dataset/helpers.py