docstr: Adds the given metadata property to the dataset.
  
  Args:
      metadata_property: the metadata property to add.
  
  Returns:
      The metadata property that was added.
  
  Raises:
      TypeError: if `metadata_property` is not a `MetadataPropertySchema`.
      ValueError: if `metadata_property` is already in the dataset.
docstr_tok: ["Adds","the","given","metadata","property","to","the","dataset",".","Args",":","metadata_property",":","the","metadata","property","to","add",".","Returns",":","The","metadata","property","that","was","added",".","Raises",":","TypeError",":","if","`","metadata_property","`","is","not","a","`","MetadataPropertySchema","`",".","ValueError",":","if","`","metadata_property","`","is","already","in","the","dataset","."]
code: def add_metadata_property(
      self, metadata_property: "AllowedMetadataPropertyTypes"
  ) -> "AllowedMetadataPropertyTypes":
      """Adds the given metadata property to the dataset.
  
      Args:
          metadata_property: the metadata property to add.
  
      Returns:
          The metadata property that was added.
  
      Raises:
          TypeError: if `metadata_property` is not a `MetadataPropertySchema`.
          ValueError: if `metadata_property` is already in the dataset.
      """
      self._unique_metadata_property(metadata_property)
      self._metadata_properties.append(metadata_property)
      return metadata_property
  
imports: import logging
  import textwrap
  import warnings
  from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Optional, Tuple, Union
  from argilla.client.feedback.constants import FETCHING_BATCH_SIZE
  from argilla.client.feedback.dataset import helpers
  from argilla.client.feedback.dataset.base import FeedbackDatasetBase, R
  from argilla.client.feedback.dataset.local.mixins import ArgillaMixin, TaskTemplateMixin
  from argilla.client.feedback.dataset.mixins import MetricsMixin, UnificationMixin
  from argilla.client.feedback.integrations.huggingface.dataset import HuggingFaceDatasetMixin
  from argilla.client.feedback.schemas.enums import RecordSortField, SortOrder
  from argilla.client.feedback.schemas.records import FeedbackRecord
  from argilla.client.feedback.schemas.vector_settings import VectorSettings
  from argilla.client.feedback.training.schemas.base import TrainingTaskForChatCompletion, TrainingTaskForDPO, TrainingTaskForPPO, TrainingTaskForQuestionAnswering, TrainingTaskForRM, TrainingTaskForSentenceSimilarity, TrainingTaskForSFT, TrainingTaskForTextClassification, TrainingTaskTypes
  from argilla.client.models import Framework
label_desc: Use image node_id 14 for calling the FeedbackDataset obj's underlying member method code with example usage: obj.add_metadata_property(metadata_property) and returns: metadata_property