code: def parse_args():
      parser = argparse.ArgumentParser(
          description="MMDet eval image prediction result for each"
      )
      parser.add_argument("config", help="test config file path")
      parser.add_argument(
          "prediction_path",
          help="prediction path where test pkl result",
      )
      parser.add_argument(
          "show_dir",
          help="directory where painted images will be saved",
      )
      parser.add_argument(
          "--show", action="store_true", help="show results"
      )
      parser.add_argument(
          "--wait-time",
          type=float,
          default=0,
          help="the interval of show (s), 0 is block",
      )
      parser.add_argument(
          "--topk",
          default=20,
          type=int,
          help="saved Number of the highest topk "
          "and lowest topk after index sorting",
      )
      parser.add_argument(
          "--show-score-thr",
          type=float,
          default=0,
          help="score threshold (default: 0.)",
      )
      parser.add_argument(
          "--cfg-options",
          nargs="+",
          action=DictAction,
          help="override some settings in the used config, the key-value pair "
          "in xxx=yyy format will be merged into config file. If the value to "
          'be overwritten is a list, it should be like key="[a,b]" or key=a,b '
          'It also allows nested list/tuple values, e.g. key="[(a,b),(c,d)]" '
          "Note that the quotation marks are necessary and that no white space "
          "is allowed.",
      )
      args = parser.parse_args()
      return args
  
imports: import argparse
  import os.path
  from multiprocessing import Pool
  import mmcv
  import numpy
  from mmengine.config import Config, DictAction
  from mmengine.fileio import load
  from mmengine.registry import init_default_scope
  from mmengine.runner import Runner
  from mmengine.structures import InstanceData, PixelData
  from mmengine.utils import ProgressBar, check_file_exist, mkdir_or_exist
  from mmdet.datasets import get_loading_pipeline
  from mmdet.evaluation import eval_map
  from mmdet.registry import DATASETS, RUNNERS
  from mmdet.structures import DetDataSample
  from mmdet.utils import replace_cfg_vals, update_data_root
  from mmdet.visualization import DetLocalVisualizer
label_desc: Use image node_id 2 for calling a global function with example usage: parse_args() and returns: args