code: def formatting_func_dpo(sample: Dict[str, Any]):
      # The FeedbackDataset isn't really set up for DPO, 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"][::-1],
                  sample["text"],
                  sample["text"][:5],
              )
          elif labels[0] == "c":
              return [
                  (
                      sample["text"],
                      sample["text"][::-1],
                      sample["text"][:5],
                  ),
                  (
                      sample["text"][::-1],
                      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 4 for calling a global function with example usage: formatting_func_dpo(sample) and returns: None, sample,  sample,  sample, list