code: def model_card_pattern(
      framework: Framework, training_task: Any
  ) -> str:
      # def model_card_pattern() -> str:
      #     def inner(framework: Framework, training_task: Any):
      if framework == Framework("transformers"):
          if training_task == TrainingTask.for_text_classification:
              return TRANSFORMERS_CODE_SNIPPET
          elif training_task == TrainingTask.for_question_answering:
              return TRANSFORMERS_QA_CODE_SNIPPET
      elif framework == Framework("setfit"):
          return SETFIT_CODE_SNIPPET
      elif framework == Framework("peft"):
          return PEFT_CODE_SNIPPET
      elif framework == Framework("spacy"):
          return SPACY_CODE_SNIPPET
      elif framework == Framework("spacy-transformers"):
          return SPACY_TRANSFORMERS_CODE_SNIPPET
      elif framework == Framework("sentence-transformers"):
          return SENTENCE_TRANSFORMERS_CODE_SNIPPET
      elif framework == Framework("trl"):
          if training_task == TrainingTask.for_supervised_fine_tuning:
              return TRL_SFT_CODE_SNIPPET
          elif training_task == TrainingTask.for_reward_modeling:
              return TRL_RM_CODE_SNIPPET
          elif (
              training_task
              == TrainingTask.for_proximal_policy_optimization
          ):
              return TRL_PPO_CODE_SNIPPET
          elif (
              training_task
              == TrainingTask.for_direct_preference_optimization
          ):
              return TRL_DPO_CODE_SNIPPET
      elif framework == Framework("openai"):
          return OPENAI_CODE_SNIPPET
      else:
          raise ValueError(f"Framework undefined: {framework}")
  
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 14 for calling a global function with example usage: model_card_pattern(framework, training_task) and returns: TRANSFORMERS_CODE_SNIPPET, SETFIT_CODE_SNIPPET, TRANSFORMERS_QA_CODE_SNIPPET, PEFT_CODE_SNIPPET, SPACY_CODE_SNIPPET, SPACY_TRANSFORMERS_CODE_SNIPPET, SENTENCE_TRANSFORMERS_CODE_SNIPPET, TRL_SFT_CODE_SNIPPET, OPENAI_CODE_SNIPPET, TRL_RM_CODE_SNIPPET, TRL_PPO_CODE_SNIPPET, TRL_DPO_CODE_SNIPPET