code: def parse_args():
      parser = argparse.ArgumentParser(
          description="MMDet test (and eval) a model"
      )
      parser.add_argument("config", help="test config file path")
      parser.add_argument("checkpoint", help="checkpoint file")
      parser.add_argument(
          "--out", help="output result file in pickle format"
      )
      parser.add_argument(
          "--fuse-conv-bn",
          action="store_true",
          help="Whether to fuse conv and bn, this will slightly increase"
          "the inference speed",
      )
      parser.add_argument(
          "--format-only",
          action="store_true",
          help="Format the output results without perform evaluation. It is"
          "useful when you want to format the result to a specific format and "
          "submit it to the test server",
      )
      parser.add_argument(
          "--eval",
          type=str,
          nargs="+",
          help='evaluation metrics, which depends on the dataset, e.g., "bbox",'
          ' "segm", "proposal" for COCO, and "mAP", "recall" for PASCAL VOC',
      )
      parser.add_argument(
          "--show", action="store_true", help="show results"
      )
      parser.add_argument(
          "--show-dir",
          help="directory where painted images will be saved",
      )
      parser.add_argument(
          "--show-score-thr",
          type=float,
          default=0.3,
          help="score threshold (default: 0.3)",
      )
      parser.add_argument(
          "--gpu-collect",
          action="store_true",
          help="whether to use gpu to collect results.",
      )
      parser.add_argument(
          "--tmpdir",
          help="tmp directory used for collecting results from multiple "
          "workers, available when gpu-collect is not specified",
      )
      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.",
      )
      parser.add_argument(
          "--options",
          nargs="+",
          action=DictAction,
          help="custom options for evaluation, the key-value pair in xxx=yyy "
          "format will be kwargs for dataset.evaluate() function (deprecate), "
          "change to --eval-options instead.",
      )
      parser.add_argument(
          "--eval-options",
          nargs="+",
          action=DictAction,
          help="custom options for evaluation, the key-value pair in xxx=yyy "
          "format will be kwargs for dataset.evaluate() function",
      )
      parser.add_argument(
          "--launcher",
          choices=["none", "pytorch", "slurm", "mpi"],
          default="none",
          help="job launcher",
      )
      parser.add_argument("--local_rank", type=int, default=0)
      args = parser.parse_args()
      if "LOCAL_RANK" not in os.environ:
          os.environ["LOCAL_RANK"] = str(args.local_rank)
  
      if args.options and args.eval_options:
          raise ValueError(
              "--options and --eval-options cannot be both "
              "specified, --options is deprecated in favor of --eval-options"
          )
      if args.options:
          warnings.warn(
              "--options is deprecated in favor of --eval-options"
          )
          args.eval_options = args.options
      return args
  
file_path: insightface/detection/scrfd/tools/test.py
imports: import argparse
  import os
  import warnings
  import mmcv
  import torch
  from mmcv import Config, DictAction
  from mmcv.cnn import fuse_conv_bn
  from mmcv.parallel import MMDataParallel, MMDistributedDataParallel
  from mmcv.runner import get_dist_info, init_dist, load_checkpoint, wrap_fp16_model
  from mmdet.apis import multi_gpu_test, single_gpu_test
  from mmdet.datasets import build_dataloader, build_dataset, replace_ImageToTensor
  from mmdet.models import build_detector
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: args