code: def create_arg_parser() -> argparse.ArgumentParser:
      parser = argparse.ArgumentParser(
          description="Track objects using sahi in a video."
      )
      parser.add_argument(
          "file", type=str, help="Video files to process"
      )
      parser.add_argument(
          "--output-path",
          type=str,
          default="output.mp4",
          help="Output video path",
      )
      parser.add_argument(
          "--distance-threshold",
          type=float,
          help="Norfair's distance threshold",
          default=0.7,
      )
      parser.add_argument(
          "--skip-period",
          type=int,
          help="Norfair's skip period",
          default=1,
      )
      parser.add_argument(
          "--initialization-delay",
          type=int,
          help="Norfair's initialization delay",
          default=15,
      )
      parser.add_argument(
          "--hit-counter-max",
          type=int,
          help="Norfair's hit counter max",
          default=30,
      )
      parser.add_argument(
          "--disable-sahi",
          dest="enable_sahi",
          help="Disable SAHI implementation, run predictions in the whole video",
          action="store_false",
          default=True,
      )
      parser.add_argument(
          "--slice-size",
          type=int,
          help="Sahi's slice height",
          default=256,
      )
      parser.add_argument(
          "--overlap-ratio",
          type=float,
          help="Sahi's overlap height ratio",
          default=0.2,
      )
      parser.add_argument(
          "--model-confidence-threshold",
          type=float,
          help="Model confidence threshold",
          default=0.3,
      )
  
      return parser
  
file_path: norfair/demos/sahi/src/utils.py
imports: import argparse
  import urllib.request
  from os import path
  from pathlib import Path
  import torch
  from sahi import AutoDetectionModel
label_desc: Use image node_id 3 for calling a global function with example usage: create_arg_parser() and returns: parser