code: def validate_metadata_properties(
      metadata_properties: typing.Union[
          typing.List[AllowedMetadataPropertyTypes], None
      ]
  ) -> None:
      """Validates that the metadata properties used in the filters are valid."""
  
      if not metadata_properties:
          return
  
      unique_names = set()
      for metadata_property in metadata_properties:
          if not isinstance(
              metadata_property, AllowedMetadataPropertyTypes.__args__
          ):
              raise TypeError(
                  f"Expected `metadata_properties` to be a list of"
                  f" `{'`, `'.join([arg.__name__ for arg in AllowedMetadataPropertyTypes.__args__])}` got a"
                  f" metadata property in the list with type type {type(metadata_property)} instead."
              )
          if metadata_property.name in unique_names:
              raise ValueError(
                  f"Expected `metadata_properties` to have unique names, got '{metadata_property.name}' twice instead."
              )
          unique_names.add(metadata_property.name)
  
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 3 for calling a global function with example usage: validate_metadata_properties(metadata_properties) without return types