class_docstr: .. note:: `bigdl.dllib.keras` is deprecated in 0.11.
  This will be removed in future releases.
class_docstr_tok: ["..","note",":",":","`","bigdl.dllib.keras","`","is","deprecated","in","0.11",".","This","will","be","removed","in","future","releases","."]
code: def __convert_optim_method(self, optimizer):
      optimizer = optimizer.lower()
      if optimizer == "adagrad":
          return Adagrad(learningrate=0.01)
      elif optimizer == "sgd":
          return SGD(learningrate=0.01)
      elif optimizer == "adam":
          return Adam()
      elif optimizer == "rmsprop":
          return RMSprop(learningrate=0.001, decayrate=0.9)
      elif optimizer == "adadelta":
          return Adadelta(decayrate=0.95, epsilon=1e-8)
      elif optimizer == "adamax":
          return Adamax(epsilon=1e-8)
      else:
          invalidInputError(
              False, "Unsupported optimizer: %s" % optimizer
          )
  
imports: from bigdl.dllib.nn.keras.layers.layer import KerasLayer
  from bigdl.dllib.optim.optimizer import *
  from bigdl.dllib.nn.criterion import *
  from bigdl.dllib.utils.log4Error import *
  import multiprocessing
  import warnings
  from bigdl.dllib.nn.layer import SharedStaticUtils, Container
label_desc: Use image node_id 1 for calling the KerasModel obj's underlying member method code with example usage: obj.__convert_optim_method(optimizer) and returns: Adagrad, SGD, Adam, RMSprop, Adadelta, Adamax