code: def constant_init(param, **kwargs):
      """
      Initialize the `param` with constants.
  
      Args:
          param (Tensor): Tensor that needs to be initialized.
  
      Examples:
  
          from paddleseg.cvlibs import param_init
          import paddle.nn as nn
  
          linear = nn.Linear(2, 4)
          param_init.constant_init(linear.weight, value=2.0)
          print(linear.weight.numpy())
          # result is [[2. 2. 2. 2.], [2. 2. 2. 2.]]
  
      """
      initializer = nn.initializer.Constant(**kwargs)
      initializer(param, param.block)
  
file_path: PaddleSeg/paddleseg/cvlibs/param_init.py
imports: import paddle.nn
  import math
label_desc: Use image node_id 2 for calling a global function with example usage: constant_init(param) without return types