code: def _get_parser():
      import argparse
  
      parser = argparse.ArgumentParser(
          description="Convert IR model file formats to other format."
      )
  
      parser.add_argument(
          "--phase",
          type=_text_type,
          choices=["train", "test"],
          default="test",
          help="Convert phase (train/test) for destination toolkits.",
      )
  
      parser.add_argument(
          "--dstFramework",
          "-f",
          type=_text_type,
          choices=[
              "caffe",
              "caffe2",
              "cntk",
              "mxnet",
              "keras",
              "tensorflow",
              "coreml",
              "pytorch",
              "onnx",
          ],
          required=True,
          help="Format of model at srcModelPath (default is to auto-detect).",
      )
  
      parser.add_argument(
          "--IRModelPath",
          "-n",
          "-in",
          type=_text_type,
          required=True,
          help="Path to the IR network structure file.",
      )
  
      parser.add_argument(
          "--IRWeightPath",
          "-w",
          "-iw",
          type=_text_type,
          required=False,
          default=None,
          help="Path to the IR network structure file.",
      )
  
      parser.add_argument(
          "--dstModelPath",
          "-d",
          "-o",
          type=_text_type,
          required=True,
          help="Path to save the destination model",
      )
  
      # MXNet
      parser.add_argument(
          "--dstWeightPath",
          "-dw",
          "-ow",
          type=_text_type,
          default=None,
          help="[MXNet] Path to save the destination weight.",
      )
      return parser
  
imports: import sys
  import google.protobuf.text_format
  from six import text_type
label_desc: Use image node_id 2 for calling a global function with example usage: _get_parser() and returns: parser