code: def parse_args():
      parser = argparse.ArgumentParser(description="Model evaluation")
  
      # params of evaluate
      parser.add_argument(
          "--config",
          dest="cfg",
          help="The config file.",
          default=None,
          type=str,
      )
      parser.add_argument(
          "--model_path",
          dest="model_path",
          help="The path of model for evaluation",
          type=str,
          default=None,
      )
      parser.add_argument(
          "--num_workers",
          dest="num_workers",
          help="Num workers for data loader",
          type=int,
          default=0,
      )
  
      parser.add_argument(
          "--data_format",
          dest="data_format",
          help='Data format that specifies the layout of input. It can be "NCHW" or "NHWC". Default: "NCHW".',
          type=str,
          default="NCHW",
      )
  
      parser.add_argument(
          "--is_view",
          dest="is_view",
          help="Whether to visualize results.",
          type=str,
          default=False,
      )
  
      parser.add_argument(
          "--save_dir",
          dest="save_dir",
          help="The directory for saving the predicted results",
          type=str,
          default="./output/result",
      )
  
      return parser.parse_args()
  
file_path: PaddleSeg/contrib/LaneSeg/val.py
imports: import argparse
  import os
  import paddle
  from paddleseg.cvlibs import manager, Config
  from core import evaluate
  from paddleseg.utils import get_sys_env, logger, utils
  from datasets import tusimple
label_desc: Use image node_id 2 for calling a global function with example usage: parse_args() and returns: parser