code: def parse_args():
      parser = argparse.ArgumentParser(
          description="Fusion image \
          prediction results using Weighted \
          Boxes Fusion from multiple models."
      )
      parser.add_argument(
          "pred-results",
          type=str,
          nargs="+",
          help="files of prediction results \
                      from multiple models, json format.",
      )
      parser.add_argument(
          "--annotation", type=str, help="annotation file path"
      )
      parser.add_argument(
          "--weights",
          type=float,
          nargs="*",
          default=None,
          help="weights for each model, "
          "remember to correspond to the above prediction path.",
      )
      parser.add_argument(
          "--fusion-iou-thr",
          type=float,
          default=0.55,
          help="IoU value for boxes to be a match in wbf.",
      )
      parser.add_argument(
          "--skip-box-thr",
          type=float,
          default=0.0,
          help="exclude boxes with score lower than this variable in wbf.",
      )
      parser.add_argument(
          "--conf-type",
          type=str,
          default="avg",
          help="how to calculate confidence in weighted boxes in wbf.",
      )
      parser.add_argument(
          "--eval-single",
          action="store_true",
          help="whether evaluate each single model result.",
      )
      parser.add_argument(
          "--save-fusion-results",
          action="store_true",
          help="whether save fusion result",
      )
      parser.add_argument(
          "--out-dir",
          type=str,
          default="outputs",
          help="Output directory of images or prediction results.",
      )
  
      args = parser.parse_args()
  
      return args
  
file_path: mmdetection/tools/analysis_tools/fuse_results.py
imports: import argparse
  from mmengine.fileio import dump, load
  from mmengine.logging import print_log
  from mmengine.utils import ProgressBar
  from pycocotools.coco import COCO
  from pycocotools.cocoeval import COCOeval
  from mmdet.models.utils import weighted_boxes_fusion
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: args