code: def parse_args(args):
      parser = argparse.ArgumentParser(
          description="Script for converting a training model to an inference model."
      )
  
      parser.add_argument("model_in", help="The model to convert.")
      parser.add_argument(
          "model_out", help="Path to save the converted model to."
      )
      parser.add_argument(
          "--backbone",
          help="The backbone of the model to convert.",
          default="resnet50",
      )
      parser.add_argument(
          "--no-nms",
          help="Disables non maximum suppression.",
          dest="nms",
          action="store_false",
      )
      parser.add_argument(
          "--no-class-specific-filter",
          help="Disables class specific filtering.",
          dest="class_specific_filter",
          action="store_false",
      )
      parser.add_argument(
          "--config",
          help="Path to a configuration parameters .ini file.",
      )
      parser.add_argument(
          "--nms-threshold",
          help="Value for non maximum suppression threshold.",
          type=float,
          default=0.5,
      )
      parser.add_argument(
          "--score-threshold",
          help="Threshold for prefiltering boxes.",
          type=float,
          default=0.05,
      )
      parser.add_argument(
          "--max-detections",
          help="Maximum number of detections to keep.",
          type=int,
          default=300,
      )
      parser.add_argument(
          "--parallel-iterations",
          help="Number of batch items to process in parallel.",
          type=int,
          default=32,
      )
  
      return parser.parse_args(args)
  
file_path: ImageAI/imageai_tf_deprecated/Detection/keras_retinanet/bin/convert_model.py
imports: import argparse
  import os
  import sys
  from ..None import models
  from ..utils.config import read_config_file, parse_anchor_parameters, parse_pyramid_levels
  from ..utils.gpu import setup_gpu
  from ..utils.tf_version import check_tf_version
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args(args) and returns: parser