code: def parse_args():
      parser = argparse.ArgumentParser(
          description="MMDetection video demo"
      )
      parser.add_argument("video", help="Video file")
      parser.add_argument("config", help="Config file")
      parser.add_argument("checkpoint", help="Checkpoint file")
      parser.add_argument(
          "--device", default="cuda:0", help="Device used for inference"
      )
      parser.add_argument(
          "--score-thr",
          type=float,
          default=0.3,
          help="Bbox score threshold",
      )
      parser.add_argument("--out", type=str, help="Output video file")
      parser.add_argument(
          "--show", action="store_true", help="Show video"
      )
      parser.add_argument(
          "--wait-time",
          type=float,
          default=1,
          help="The interval of show (s), 0 is block",
      )
      args = parser.parse_args()
      return args
  
file_path: mmdetection/demo/video_demo.py
imports: import argparse
  import cv2
  import mmcv
  from mmcv.transforms import Compose
  from mmengine.utils import track_iter_progress
  from mmdet.apis import inference_detector, init_detector
  from mmdet.registry import VISUALIZERS
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: args