code: def formatting_func_rm(sample: Dict[str, Any]):
      # The FeedbackDataset isn't really set up for RM, so we'll just use an arbitrary example here
      labels = [
          annotation["value"]
          for annotation in sample["question-3"]
          if annotation["status"] == "submitted"
          and annotation["value"] is not None
      ]
      if labels:
          # Three cases for the tests: None, one tuple and yielding multiple tuples
          if labels[0] == "a":
              return None
          elif labels[0] == "b":
              return sample["text"], sample["text"][:5]
          elif labels[0] == "c":
              return [
                  (sample["text"], sample["text"][5:10]),
                  (sample["text"], sample["text"][:5]),
              ]
  
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 2 for calling a global function with example usage: formatting_func_rm(sample) and returns: None, sample,  sample, list