code: def parse_args():
      
      parser = argparse.ArgumentParser(description='train an image classifier on mnist')
      parser.add_argument('--network', type=str, default='lenet',
                          help='the cnn to use (mlp | lenet | <path to network json file>')
      parser.add_argument('--caffe-loss', type=int, default=0,
                          help='Use CaffeLoss symbol')
      parser.add_argument('--caffe-data', action='store_true',
                          help='Use Caffe input-data layer only if specified')
      parser.add_argument('--data-dir', type=str, default='mnist/',
                          help='the input data directory')
      parser.add_argument('--gpus', type=str,
                          help='the gpus will be used, e.g "0,1,2,3"')
      parser.add_argument('--num-examples', type=int, default=60000,
                          help='the number of training examples')
      parser.add_argument('--batch-size', type=int, default=128,
                          help='the batch size')
      parser.add_argument('--lr', type=float, default=.1,
                          help='the initial learning rate')
      parser.add_argument('--model-prefix', type=str,
                          help='the prefix of the model to load/save')
      parser.add_argument('--save-model-prefix', type=str,
                          help='the prefix of the model to save')
      parser.add_argument('--num-epochs', type=int, default=10,
                          help='the number of training epochs')
      parser.add_argument('--load-epoch', type=int,
                          help="load the model on an epoch using the model-prefix")
      parser.add_argument('--kv-store', type=str, default='local',
                          help='the kvstore type')
      parser.add_argument('--lr-factor', type=float, default=1,
                          help='times the lr with a factor for every lr-factor-epoch epoch')
      parser.add_argument('--lr-factor-epoch', type=float, default=1,
                          help='the number of epoch to factor the lr, could be .5')
      return parser.parse_args()
docs: Parse the arguments