docstr: Adds the given records to the dataset, and stores them locally. If you are
  planning to push those to Argilla, you will need to call `push_to_argilla` afterwards,
  to both create the dataset in Argilla and push the records to it. Then, from a
  `FeedbackDataset` pushed to Argilla, you'll just need to call `add_records` and
  those will be automatically uploaded to Argilla.
  
  Args:
      records: can be a single `FeedbackRecord`, a list of `FeedbackRecord`,
          a single dictionary, or a list of dictionaries. If a dictionary is provided,
          it will be converted to a `FeedbackRecord` internally.
  
  Raises:
      ValueError: if the given records are an empty list.
      ValueError: if the given records are neither: `FeedbackRecord`, list of `FeedbackRecord`,
          list of dictionaries as a record or dictionary as a record.
      ValueError: if the given records do not match the expected schema.
docstr_tok: ["Adds","the","given","records","to","the","dataset",",","and","stores","them","locally",".","If","you","are","planning","to","push","those","to","Argilla",",","you","will","need","to","call","`","push_to_argilla","`","afterwards",",","to","both","create","the","dataset","in","Argilla","and","push","the","records","to","it",".","Then",",","from","a","`","FeedbackDataset","`","pushed","to","Argilla",",","you","'ll","just","need","to","call","`","add_records","`","and","those","will","be","automatically","uploaded","to","Argilla",".","Args",":","records",":","can","be","a","single","`","FeedbackRecord","`",",","a","list","of","`","FeedbackRecord","`",",","a","single","dictionary",",","or","a","list","of","dictionaries",".","If","a","dictionary","is","provided",",","it","will","be","converted","to","a","`","FeedbackRecord","`","internally",".","Raises",":","ValueError",":","if","the","given","records","are","an","empty","list",".","ValueError",":","if","the","given","records","are","neither",":","`","FeedbackRecord","`",",","list","of","`","FeedbackRecord","`",",","list","of","dictionaries","as","a","record","or","dictionary","as","a","record",".","ValueError",":","if","the","given","records","do","not","match","the","expected","schema","."]
code: def add_records(
      self,
      records: Union[
          "FeedbackRecord",
          Dict[str, Any],
          List[Union["FeedbackRecord", Dict[str, Any]]],
      ],
  ) -> None:
      """Adds the given records to the dataset, and stores them locally. If you are
      planning to push those to Argilla, you will need to call `push_to_argilla` afterwards,
      to both create the dataset in Argilla and push the records to it. Then, from a
      `FeedbackDataset` pushed to Argilla, you'll just need to call `add_records` and
      those will be automatically uploaded to Argilla.
  
      Args:
          records: can be a single `FeedbackRecord`, a list of `FeedbackRecord`,
              a single dictionary, or a list of dictionaries. If a dictionary is provided,
              it will be converted to a `FeedbackRecord` internally.
  
      Raises:
          ValueError: if the given records are an empty list.
          ValueError: if the given records are neither: `FeedbackRecord`, list of `FeedbackRecord`,
              list of dictionaries as a record or dictionary as a record.
          ValueError: if the given records do not match the expected schema.
      """
      records = helpers.normalize_records(records)
      helpers.validate_dataset_records(self, records)
  
      if len(self._records) > 0:
          self._records += records
      else:
          self._records = records
  
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 13 for calling the FeedbackDataset obj's underlying member method code with example usage: obj.add_records(records) without return types