code: def try_wrong_format(dataset, task, format_func: Any) -> None:
      task = task(lambda _: {"test": "test"})
      with pytest.raises(
          ValueError,
          match=re.escape(
              f"formatting_func must return {format_func.__annotations__['format']}, not <class 'list'>"
          ),
      ):
          trainer = ArgillaTrainer(
              dataset=dataset, task=task, framework=FRAMEWORK
          )
          trainer.train(OUTPUT_DIR)
  
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 1 for calling a global function with example usage: try_wrong_format(dataset, task, format_func) without return types