code: def test_prepare_dataset_for_annotation_task(
      feedback_dataset_guidelines: str,
      feedback_dataset_fields: List["AllowedFieldTypes"],
      feedback_dataset_questions: List["AllowedQuestionTypes"],
      feedback_dataset_records_with_paired_suggestions: List[
          FeedbackRecord
      ],
      question: str,
      num_items: int,
      type_of_data: Union[str, int, FrozenSet, Tuple[str]],
  ):
      dataset = FeedbackDataset(
          guidelines=feedback_dataset_guidelines,
          fields=feedback_dataset_fields,
          questions=feedback_dataset_questions,
      )
      dataset.add_records(
          records=feedback_dataset_records_with_paired_suggestions
      )
  
      if question in ("question-1",):
          with pytest.raises(NotImplementedError, match=r"^Question '"):
              prepare_dataset_for_annotation_task(dataset, question)
      else:
          formatted_dataset = prepare_dataset_for_annotation_task(
              dataset, question
          )
          assert isinstance(formatted_dataset, list)
          assert len(formatted_dataset) == num_items
          item = formatted_dataset[0]
          assert isinstance(item, tuple)
          assert isinstance(item[0], str)
          assert item[0].startswith(
              "00000000-"
          )  # beginning of our uuid for tests
          assert isinstance(item[1], str)
          assert (
              item[1]
              == feedback_dataset_records_with_paired_suggestions[
                  0
              ].fields["text"]
          )
          assert isinstance(item[2], type_of_data)
  
file_path: argilla/tests/integration/client/feedback/metrics/test_agreement_metrics.py
imports: import uuid
  from typing import TYPE_CHECKING, FrozenSet, List, Tuple, Union
  import pytest
  from argilla import User, init
  from argilla.client.feedback.dataset import FeedbackDataset
  from argilla.client.feedback.metrics.agreement_metrics import AgreementMetric, AgreementMetricResult, prepare_dataset_for_annotation_task
  from argilla.client.feedback.schemas import FeedbackRecord
  from tests.factories import UserFactory, WorkspaceFactory
label_desc: Use image node_id 2 for calling a global function with example usage: test_prepare_dataset_for_annotation_task(feedback_dataset_guidelines, feedback_dataset_fields, feedback_dataset_questions, feedback_dataset_records_with_paired_suggestions, question, num_items, type_of_data) without return types