code: def add_training_args(parser):
      group = parser.add_argument_group("Training")
      group.add_argument(
          "--label-smoothing",
          type=float,
          default=0.1,
          help="The ratio of label smoothing.",
      )
      group.add_argument(
          "--optimizer",
          default="Momentum",
          metavar="OPTIMIZER",
          choices=("Momentum"),
          help="The name of optimizer. It should be one of {Momentum}.",
      )
      group.add_argument(
          "--momentum",
          type=float,
          default=0.875,
          help="The momentum value of optimizer.",
      )
      group.add_argument(
          "--weight-decay",
          type=float,
          default=3.0517578125e-05,
          help="The coefficient of weight decay.",
      )
      group.add_argument(
          "--lr-scheduler",
          default="Cosine",
          metavar="LR_SCHEDULER",
          choices=("Cosine"),
          help="The name of learning rate scheduler. It should be one of {Cosine}.",
      )
      group.add_argument(
          "--lr",
          type=float,
          default=0.256,
          help="The initial learning rate.",
      )
      group.add_argument(
          "--warmup-epochs",
          type=int,
          default=5,
          help="The number of epochs for learning rate warmup.",
      )
      group.add_argument(
          "--warmup-start-lr",
          type=float,
          default=0.0,
          help="The initial learning rate for warmup.",
      )
      return parser
  
file_path: DALI/docs/examples/use_cases/paddle/resnet50/utils/config.py
imports: import os
  import copy
  import argparse
  import logging
  import distutils.util
  import dllogger
  from utils.mode import RunScope
  from utils.utility import get_num_trainers
  from utils.save_load import _PDOPT_SUFFIX, _PDPARAMS_SUFFIX
label_desc: Use image node_id 9 for calling a global function with example usage: add_training_args(parser) and returns: parser