code: def constant_init(module, constant, bias=0):
      module.weight = paddle.create_parameter(
          shape=module.weight.shape,
          dtype="float32",
          default_initializer=paddle.nn.initializer.Constant(constant),
      )
      if hasattr(module, "bias"):
          module.bias = paddle.create_parameter(
              shape=module.bias.shape,
              dtype="float32",
              default_initializer=paddle.nn.initializer.Constant(bias),
          )
  
imports: import math
  import paddle
  from paddle import nn
label_desc: Use image node_id 1 for calling a global function with example usage: constant_init(module, constant, bias) without return types