code: def parse_args():
      parser = argparse.ArgumentParser(description="Model export.")
      # params of training
      parser.add_argument(
          "--config",
          dest="cfg",
          help="The config file.",
          default=None,
          type=str,
          required=True,
      )
      parser.add_argument(
          "--save_dir",
          dest="save_dir",
          help="The directory for saving the exported model",
          type=str,
          default="./output",
      )
      parser.add_argument(
          "--model_path",
          dest="model_path",
          help="The path of model for export",
          type=str,
          default=None,
      )
      parser.add_argument(
          "--trimap",
          dest="trimap",
          help="Whether to input trimap",
          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,
      )
      parser.add_argument(
          "--for_fd",
          action="store_true",
          help="Export the model to FD-compatible format.",
      )
  
      return parser.parse_args()
  
file_path: PaddleSeg/Matting/tools/export.py
imports: import argparse
  import os
  import sys
  import paddle
  import yaml
  import paddleseg
  from paddleseg.cvlibs import manager
  from paddleseg.utils import logger
  import ppmatting
  from ppmatting.utils import get_input_spec, Config, MatBuilder
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser