code: def formatting_prompts_func(example):
      text = f"### Question: {example['question']}\n ### Answer: {example['answer']}"
      return text
  
imports: import copy
  import os
  import tempfile
  import unittest
  import numpy
  import torch
  from datasets import Dataset
  from transformers import AutoModelForCausalLM, AutoTokenizer, TrainingArguments
  from trl import SFTTrainer
  from trl.import_utils import is_peft_available
  from trl.trainer import ConstantLengthDataset, DataCollatorForCompletionOnlyLM
  from .testing_utils import require_peft
label_desc: Use image node_id 1 for calling a global function with example usage: formatting_prompts_func(example) and returns: text