code: def _setup_kernel(k):
      k = np.asarray(k, dtype=np.float32)
      if k.ndim == 1:
          k = np.outer(k, k)
      k /= np.sum(k)
      assert k.ndim == 2
      assert k.shape[0] == k.shape[1]
      return k
  
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 6 for calling a global function with example usage: _setup_kernel(k) and returns: k