code: def to_bigdl_reg(reg):  # reg is a dict
      if reg:
          return BRegularizer(reg["l1"], reg["l2"])
      else:
          return None
  
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 7 for calling a global function with example usage: to_bigdl_reg(reg) and returns: BRegularizer, None