code: def process_dev(sample_dict, pad_choices=False):
      dev_dict = {}
      for category in sample_dict.keys():
          dev_dict[category] = {
              "data": [],
              "inference_kwargs": default_inference_kwargs,
          }
          sample_list = sample_dict[category]
          for sample_id, sample in enumerate(sample_list):
              idx = sample["answer"]
              question = sample["question"]
              options = sample["options"]
              query_str = get_query_str(
                  question, options, pad=pad_choices
              )
              data_sample = {
                  "dataset": EVAL_NAME,
                  "split": "dev",
                  "category": category,
                  "instruction": INST,
                  "input": query_str,
                  "output": "",
                  "target": IDX2CHOICE[idx],
                  "id": sample_id,
              }
              dev_dict[category]["data"].append(data_sample)
      return dev_dict
  
file_path: ColossalAI/applications/ColossalEval/colossal_eval/dataset/safetybench_zh.py
imports: import json
  import os
  from copy import deepcopy
  from typing import Dict, List
  from colossalai.logging import DistributedLogger
  from .base import BaseDataset
label_desc: Use image node_id 3 for calling a global function with example usage: process_dev(sample_dict, pad_choices) and returns: dev_dict