code: def map_src_instruct(example: dict) -> dict:
      instructions = [
          SRC_INSTRUCT_INSTRUCTION_PROMPT.format(problem=problem)
          for problem in example["problem"]
      ]
      keys = [
          key
          for key in example.keys()
          if key not in ["problem", "solution"]
      ]
      kwargs = {key: example[key] for key in keys}
      return dict(
          instruction=instructions,
          response=example["solution"],
          **kwargs,
      )
  
file_path: magicoder/src/magicoder/preprocess_data.py
imports: from dataclasses import dataclass, field
  from typing import Literal, cast
  from datasets import load_dataset
  from transformers import HfArgumentParser
  from magicoder.prompt_template import SRC_INSTRUCT_INSTRUCTION_PROMPT
  from magicoder.utils import N_CORES, read_jsonl, write_jsonl
label_desc: Use image node_id 4 for calling a global function with example usage: map_src_instruct(example) and returns: dict