code: def parameter_init(mode="kaiming", value=0.0):
      if mode == "kaiming":
          weight_attr = paddle.nn.initializer.KaimingUniform()
      elif mode == "constant":
          weight_attr = paddle.nn.initializer.Constant(value=value)
      else:
          weight_attr = paddle.nn.initializer.KaimingUniform()
  
      weight_init = ParamAttr(initializer=weight_attr)
      return weight_init
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddle import ParamAttr
  from ppdet.core.workspace import register
  from ppdet.modeling import ops
  from ppdet.modeling.losses.iou_loss import GIoULoss
  from ppdet.utils.logger import setup_logger
label_desc: Use image node_id 1 for calling a global function with example usage: parameter_init(mode, value) and returns: weight_init