code: def __create_local_optimizer(
      self, x, y, batch_size=32, nb_epoch=10, validation_data=None
  ):
      if validation_data:
          unsupport_exp("validation_data")
      bopt = boptimizer.LocalOptimizer(
          X=x,
          Y=y,
          model=self.bmodel,
          criterion=self.criterion,
          end_trigger=boptimizer.MaxEpoch(nb_epoch),
          batch_size=batch_size,
          optim_method=self.optim_method,
          cores=None,
      )
      # TODO: enable validation for local optimizer.
      return bopt
  
file_path: BigDL/python/dllib/src/bigdl/dllib/nn/keras/backend.py
imports: from bigdl.dllib.nn.keras.optimization import *
  from bigdl.dllib.utils.common import *
label_desc: Use image node_id 6 for calling the KerasModelWrapper obj's underlying member method code with example usage: obj.__create_local_optimizer(x, y, batch_size, nb_epoch, validation_data) and returns: bopt