code: 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
  
imports: import typing
  from typing import Any, Dict, List, Optional, Type, Union
  import httpx
  from argilla.client.feedback.constants import FIELD_TYPE_TO_PYTHON_TYPE
  from argilla.client.feedback.dataset.base import FeedbackDatasetBase
  from argilla.client.feedback.schemas import FeedbackRecord
  from argilla.client.feedback.schemas.enums import MetadataPropertyTypes
  from argilla.client.feedback.schemas.types import AllowedFieldTypes, AllowedMetadataPropertyTypes, AllowedQuestionTypes
  from argilla.client.sdk.v1.datasets import api
  from argilla.client.sdk.v1.datasets.models import FeedbackDatasetModel
  from argilla.client.singleton import active_client
  from argilla.client.workspaces import Workspace
  from argilla.pydantic_v1 import BaseModel, Extra, ValidationError, create_model
label_desc: Use image node_id 11 for calling a global function with example usage: _validate_record_fields(record, fields_schema) without return types