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
  
imports: import os
  import re
  from collections import Counter
  from typing import TYPE_CHECKING, Any, Callable, Dict, Iterator, List
  import pytest
  from argilla.client.feedback.dataset import FeedbackDataset
  from argilla.client.feedback.schemas.records import FeedbackRecord
  from argilla.client.feedback.training.base import ArgillaTrainer
  from argilla.client.feedback.training.schemas.base import TrainingTask
  from argilla.client.feedback.training.schemas.return_types import DPOReturnTypes, PPOReturnTypes, RMReturnTypes, SFTReturnTypes
  from datasets import Dataset, DatasetDict
  from peft import LoraConfig, TaskType
  from transformers import AutoModelForCausalLM, AutoModelForSequenceClassification, AutoTokenizer
  from trl import AutoModelForCausalLMWithValueHead
  from tests.integration.client.feedback.helpers import formatting_func_dpo, formatting_func_ppo, formatting_func_rm, formatting_func_sft
  from tests.integration.training.helpers import train_with_cleanup
label_desc: Use image node_id 2 for calling a global function with example usage: formatting_func_sft(sample) and returns: None, str, sample