code: def __init__(self, kmodel):
      redire_spark_logs()
      show_bigdl_info_logs()
      self.bmodel = DefinitionLoader.from_kmodel(kmodel)
      WeightLoader.load_weights_from_kmodel(
          self.bmodel, kmodel
      )  # share the same weight.
      self.criterion = (
          OptimConverter.to_bigdl_criterion(kmodel.loss)
          if kmodel.loss
          else None
      )
      self.optim_method = (
          OptimConverter.to_bigdl_optim_method(kmodel.optimizer)
          if kmodel.optimizer
          else None
      )
      self.metrics = (
          OptimConverter.to_bigdl_metrics(kmodel.metrics)
          if kmodel.metrics
          else None
      )
  
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 1 to create a new KerasModelWrapper object  with example: obj = KerasModelWrapper(kmodel)