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", default="wout", help="output folder")
      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(
          "--save-preds", action="store_true", help="save results"
      )
      parser.add_argument(
          "--show-assign", action="store_true", help="show bbox assign"
      )
      parser.add_argument(
          "--debug", action="store_true", help="debug flag"
      )
      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(
          "--thr", type=float, default=0.02, help="score threshold"
      )
      parser.add_argument("--local_rank", type=int, default=0)
      parser.add_argument("--mode", type=int, default=0)
      args = parser.parse_args()
      if "LOCAL_RANK" not in os.environ:
          os.environ["LOCAL_RANK"] = str(args.local_rank)
  
      return args
  
file_path: insightface/detection/scrfd/tools/test_widerface.py
imports: import argparse
  import os
  import os.path
  import pickle
  import numpy
  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
  from mmdet.core.evaluation import wider_evaluation, get_widerface_gts
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: args