code: def parse_args():
      parser = argparse.ArgumentParser(description="Model export.")
      parser.add_argument(
          "--config", help="The config file.", type=str, required=True
      )
      parser.add_argument(
          "--model_path", help="The path of model for export", type=str
      )
      parser.add_argument(
          "--save_dir",
          help="The directory for saving the exported model",
          type=str,
          default="./output/inference_model",
      )
      parser.add_argument(
          "--output_op",
          choices=["argmax", "softmax", "none"],
          default="argmax",
          help="Select which op to be appended to output result, default: argmax",
      )
      parser.add_argument(
          "--without_argmax",
          help="Do not add the argmax operation at the end of the network. [Deprecated]",
          action="store_true",
      )
      parser.add_argument(
          "--with_softmax",
          help="Add the softmax operation at the end of the network. [Deprecated]",
          action="store_true",
      )
      parser.add_argument(
          "--input_shape",
          nargs="+",
          help="Export the model with fixed input shape, such as 1 3 1024 1024.",
          type=int,
          default=None,
      )
  
      return parser.parse_args()
  
file_path: PaddleSeg/contrib/CityscapesSOTA/export.py
imports: import argparse
  import os
  import paddle
  import yaml
  from paddleseg.cvlibs import Config, SegBuilder
  from paddleseg.utils import logger
  import datasets, models
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser