code: def parse_args():
      parser = ArgumentParser()
      parser.add_argument(
          "img", help="Image path, include image file, dir and URL."
      )
      parser.add_argument("config", help="Config file")
      parser.add_argument("checkpoint", help="Checkpoint file")
      parser.add_argument(
          "--out-dir", default="./output", help="Path to output file"
      )
      parser.add_argument(
          "--device", default="cuda:0", help="Device used for inference"
      )
      parser.add_argument(
          "--show",
          action="store_true",
          help="Show the detection results",
      )
      parser.add_argument(
          "--score-thr",
          type=float,
          default=0.3,
          help="Bbox score threshold",
      )
      parser.add_argument(
          "--dataset",
          type=str,
          help="dataset name to load the text embedding",
      )
      parser.add_argument(
          "--class-name", nargs="+", type=str, help="custom class names"
      )
      args = parser.parse_args()
      return args
  
file_path: mmdetection/projects/Detic/demo.py
imports: import os
  import urllib
  from argparse import ArgumentParser
  import mmcv
  import torch
  from mmengine.logging import print_log
  from mmengine.utils import ProgressBar, scandir
  from mmdet.apis import inference_detector, init_detector
  from mmdet.registry import VISUALIZERS
  from mmdet.utils import register_all_modules
label_desc: Use image node_id 2 for calling a global function with example usage: parse_args() and returns: args