code: def parse_export_args(*args, **kwargs):
      parser = argparse.ArgumentParser(description="Model export")
      parser.add_argument(
          "--config",
          dest="cfg",
          help="Config file.",
          type=str,
          required=True,
      )
      parser.add_argument(
          "--model_path", help="Path of the model for export.", type=str
      )
      parser.add_argument(
          "--save_dir",
          help="Directory to save the exported model.",
          type=str,
          default="./output/inference_model",
      )
      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(*args, **kwargs)
  
file_path: PaddleSeg/contrib/PanopticSeg/tools/export.py
imports: import argparse
  import os
  import paddle
  import yaml
  from paddleseg.utils import logger, utils
  from paddlepanseg.cvlibs import Config, make_default_builder
  from paddlepanseg.deploy.export import WrappedPanSegInferModel
label_desc: Use image node_id 1 for calling a global function with example usage: parse_export_args() and returns: parser