code: def formatting_func_sft(sample: Dict[str, Any]) -> Iterator[str]:
      # For example, the sample must be most frequently rated as "1" in question-2 and
      # label "b" from "question-3" must have not been set by any annotator
      ratings = [
          annotation["value"]
          for annotation in sample["question-2"]
          if annotation["status"] == "submitted"
          and annotation["value"] is not None
      ]
      labels = [
          annotation["value"]
          for annotation in sample["question-3"]
          if annotation["status"] == "submitted"
          and annotation["value"] is not None
      ]
      if (
          ratings
          and Counter(ratings).most_common(1)[0][0] == 1
          and "b" not in labels
      ):
          return f"### Text\n{sample['text']}"
      return None
  
file_path: argilla/tests/integration/client/feedback/helpers.py
imports: from collections import Counter
  from typing import Any, Dict, Iterator
  from argilla.client.models import Framework
  from argilla.feedback import TrainingTask
label_desc: Use image node_id 1 for calling a global function with example usage: formatting_func_sft(sample) and returns: None, str, sample