code: def get_parser():
      parser = argparse.ArgumentParser(
          description="Script to average the checkpoints"
      )
      parser.add_argument(
          "--checkpoints",
          type=str,
          required=True,
          nargs="+",
          help="checkpoint file paths, supports two format, "
          "--checkpoints folder/epoch*.params or --checkpoints folder/update*.param",
      )
      parser.add_argument(
          "--ids",
          type=int,
          required=False,
          nargs="+",
          help="The IDs of the checkpoints.",
      )
      parser.add_argument(
          "--begin",
          type=int,
          required=False,
          default=None,
          help="begin number of checkpoints",
      )
      parser.add_argument(
          "--end",
          type=int,
          required=False,
          default=None,
          help="end number of checkpoints. "
          "We select the checkpoints with ID >= begin and <= end.",
      )
      parser.add_argument(
          "--save-path",
          type=str,
          required=True,
          help="Path of the output file",
      )
      return parser
  
imports: import argparse
  import mxnet
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: get_parser() and returns: parser