code: def parse_args():
      parser = ArgumentParser(
          description="Convert MMDetection models to TorchServe `.mar` format."
      )
      parser.add_argument("config", type=str, help="config file path")
      parser.add_argument(
          "checkpoint", type=str, help="checkpoint file path"
      )
      parser.add_argument(
          "--output-folder",
          type=str,
          required=True,
          help="Folder where `{model_name}.mar` will be created.",
      )
      parser.add_argument(
          "--model-name",
          type=str,
          default=None,
          help="If not None, used for naming the `{model_name}.mar`"
          "file that will be created under `output_folder`."
          "If None, `{Path(checkpoint_file).stem}` will be used.",
      )
      parser.add_argument(
          "--model-version",
          type=str,
          default="1.0",
          help="Number used for versioning.",
      )
      parser.add_argument(
          "-f",
          "--force",
          action="store_true",
          help="overwrite the existing `{model_name}.mar`",
      )
      args = parser.parse_args()
  
      return args
  
imports: from argparse import ArgumentParser, Namespace
  from pathlib import Path
  from tempfile import TemporaryDirectory
  from mmengine.config import Config
  from mmengine.utils import mkdir_or_exist
label_desc: Use image node_id 2 for calling a global function with example usage: parse_args() and returns: args