code: def config_option_parser():
      parser = OptionParser()
      parser.add_option(
          "-f",
          "--folder",
          type=str,
          dest="folder",
          default="",
          help="url of hdfs folder store the hadoop sequence files",
      )
      parser.add_option(
          "--model",
          type=str,
          dest="model",
          default="",
          help="model snapshot location",
      )
      parser.add_option(
          "--state",
          type=str,
          dest="state",
          default="",
          help="state snapshot location",
      )
      parser.add_option(
          "--checkpoint",
          type=str,
          dest="checkpoint",
          default="",
          help="where to cache the model",
      )
      parser.add_option(
          "-o",
          "--overwrite",
          action="store_true",
          dest="overwrite",
          default=False,
          help="overwrite checkpoint files",
      )
      parser.add_option(
          "-e",
          "--maxEpoch",
          type=int,
          dest="maxEpoch",
          default=0,
          help="epoch numbers",
      )
      parser.add_option(
          "-i",
          "--maxIteration",
          type=int,
          dest="maxIteration",
          default=62000,
          help="iteration numbers",
      )
      parser.add_option(
          "-l",
          "--learningRate",
          type=float,
          dest="learningRate",
          default=0.01,
          help="learning rate",
      )
      parser.add_option(
          "--warmupEpoch",
          type=int,
          dest="warmupEpoch",
          default=0,
          help="warm up epoch numbers",
      )
      parser.add_option(
          "--maxLr",
          type=float,
          dest="maxLr",
          default=0.0,
          help="max Lr after warm up",
      )
      parser.add_option(
          "-b",
          "--batchSize",
          type=int,
          dest="batchSize",
          help="batch size",
      )
      parser.add_option(
          "--classNum",
          type=int,
          dest="classNum",
          default=1000,
          help="class number",
      )
      parser.add_option(
          "--weightDecay",
          type=float,
          dest="weightDecay",
          default=0.0001,
          help="weight decay",
      )
      parser.add_option(
          "--checkpointIteration",
          type=int,
          dest="checkpointIteration",
          default=620,
          help="checkpoint interval of iterations",
      )
      parser.add_option(
          "--gradientMin",
          type=float,
          dest="gradientMin",
          default=0.0,
          help="min gradient clipping by",
      )
      parser.add_option(
          "--gradientMax",
          type=float,
          dest="gradientMax",
          default=0.0,
          help="max gradient clipping by",
      )
      parser.add_option(
          "--gradientL2NormThreshold",
          type=float,
          dest="gradientL2NormThreshold",
          default=0.0,
          help="gradient L2-Norm threshold",
      )
      parser.add_option(
          "--executor-cores",
          type=int,
          dest="cores",
          default=4,
          help="number of executor cores",
      )
      parser.add_option(
          "--num-executors",
          type=int,
          dest="executors",
          default=16,
          help="number of executors",
      )
      parser.add_option(
          "--executor-memory",
          type=str,
          dest="executorMemory",
          default="30g",
          help="executor memory",
      )
      parser.add_option(
          "--driver-memory",
          type=str,
          dest="driverMemory",
          default="30g",
          help="driver memory",
      )
      parser.add_option(
          "--deploy-mode",
          type=str,
          dest="deployMode",
          default="yarn-client",
          help="yarn deploy mode, yarn-client or yarn-cluster",
      )
  
      return parser
  
file_path: BigDL/python/dllib/src/bigdl/dllib/models/inception/inception.py
imports: from bigdl.dllib.nn.layer import *
  from optparse import OptionParser
  from bigdl.dllib.nn.criterion import *
  from bigdl.dllib.nn.initialization_method import *
  from bigdl.dllib.optim.optimizer import *
  from bigdl.dllib.feature.transform.vision.image import *
  from bigdl.dllib.nncontext import *
  from bigdl.dllib.utils.utils import detect_conda_env_name
  import os
  from math import ceil
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 6 for calling a global function with example usage: config_option_parser() and returns: parser