code: def get_prompt(
      line: Dict, dataset_name: str, logger: DistributedLogger
  ) -> Dict:
      """Modified from https://github.com/microsoft/AGIEval/blob/main/src/dataset_loader.py#L190"""
      try:
          all_classes = None
          passage = (
              line["passage"] if line["passage"] is not None else ""
          )
  
          if dataset_name in english_qa_datasets:
              option_string = "ABCDEFG"
              count = len(line["options"])
  
              input = (
                  "Question: "
                  + line["question"]
                  + " "
                  + "Choose from the following options: "
                  + " ".join(line["options"])
                  + "\n"
                  + "Answer: "
              )
  
              all_classes = list(option_string[0:count])
  
          elif dataset_name in chinese_qa_datasets:
              option_string = "ABCDEFG"
              count = len(line["options"])
  
              input = (
                  "问题："
                  + line["question"]
                  + " "
                  + "从以下选项中选择："
                  + " ".join(line["options"])
                  + "\n"
                  + "答案："
              )
  
              all_classes = list(option_string[0:count])
  
          elif dataset_name in english_cloze_datasets:
              input = (
                  "Question: " + line["question"] + "\n" + "Answer: "
              )
  
          elif dataset_name in chinese_cloze_datasets:
              input = "问题：" + line["question"] + "\n" + "答案："
  
          return {
              "instruction": input
              if not passage
              else passage + "\n\n" + input,
              "target": line["label"]
              if line["label"]
              else line["answer"],
          }, all_classes
  
      except NameError:
          logger.info("Dataset not defined.")
  
file_path: colossalai/applications/ColossalEval/colossal_eval/dataset/agieval.py
imports: import ast
  import glob
  import os
  from copy import deepcopy
  from typing import Dict, List
  import pandas
  from colossal_eval.utils import get_json_list
  from colossalai.logging import DistributedLogger
  from .base import BaseDataset
label_desc: Use image node_id 1 for calling a global function with example usage: get_prompt(line, dataset_name, logger) and returns: dict,  all_classes