code: def to_bigdl_init(kinit_method):  # kinit_method is a string
      init = None
      if kinit_method == "glorot_uniform":
          init = BInit.Xavier()
      elif kinit_method == "one":
          init = BInit.Ones()
      elif kinit_method == "zero":
          init = BInit.Zeros()
      elif kinit_method == "uniform":
          init = BInit.RandomUniform(lower=-0.05, upper=0.05)
      elif kinit_method == "normal":
          init = BInit.RandomNormal(mean=0.0, stdv=0.05)
      else:
          invalidInputError(
              False, "Unsupported init type: %s" % kinit_method
          )
      return init
  
file_path: BigDL/python/dllib/src/bigdl/dllib/keras/ToBigDLHelper.py
imports: from math import ceil
  import bigdl.dllib.nn.initialization_method
  from bigdl.dllib.utils.log4Error import *
  from bigdl.dllib.optim.optimizer import L1L2Regularizer
label_desc: Use image node_id 6 for calling a global function with example usage: to_bigdl_init(kinit_method) and returns: init