code: def add_pretrain_args(parser: argparse.ArgumentParser):
      group = parser.add_argument_group(
          "pretrain", "pretrain configurations"
      )
      group.add_argument(
          "--save-iters",
          type=int,
          default=1000,
          help="number of iterations between saves",
      )
      group.add_argument(
          "--log-dir",
          type=str,
          default=None,
          help="log directory",
      )
  
      return parser
  
imports: import argparse
label_desc: Use image node_id 3 for calling a global function with example usage: add_pretrain_args(parser) and returns: parser