code: def test_allowed_metrics(
      feedback_dataset_guidelines: str,
      feedback_dataset_fields: List["AllowedFieldTypes"],
      feedback_dataset_questions: List["AllowedQuestionTypes"],
      feedback_dataset_records_with_paired_suggestions: List[
          FeedbackRecord
      ],
      question: str,
      metric_names: Union[str, List[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
      )
  
      metric = AnnotatorMetric(dataset, question)
      assert set(metric.allowed_metrics) == metric_names
  
file_path: argilla/tests/integration/client/feedback/metrics/test_annotator_metrics.py
imports: import uuid
  from typing import TYPE_CHECKING, List, Union
  import pytest
  from argilla import User, init
  from argilla.client.feedback.dataset import FeedbackDataset
  from argilla.client.feedback.metrics.annotator_metrics import AnnotatorMetric, UnifiedAnnotatorMetric
  from argilla.client.feedback.metrics.base import ModelMetricResult
  from argilla.client.feedback.schemas import FeedbackRecord
  from tests.factories import UserFactory, WorkspaceFactory
label_desc: Use image node_id 1 for calling a global function with example usage: test_allowed_metrics(feedback_dataset_guidelines, feedback_dataset_fields, feedback_dataset_questions, feedback_dataset_records_with_paired_suggestions, question, metric_names) without return types