code: def get_weight(module, shape, weight_var="weight", kernel_init=None):
      """Get/create weight tensor for a convolution or fully-connected layer."""
  
      return module.param(weight_var, kernel_init, shape)
  
file_path: espnet/espnet2/enh/layers/ncsnpp_utils/up_or_down_sampling.py
imports: import numpy
  import torch
  import torch.nn
  import torch.nn.functional
  from espnet2.enh.layers.ncsnpp_utils.upfirdn2d import upfirdn2d
label_desc: Use image node_id 1 for calling a global function with example usage: get_weight(module, shape, weight_var, kernel_init) and returns: module