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: insightface/reconstruction/ostec/external/stylegan2/dnnlib/tflib/ops/upfirdn_2d.py
imports: import os
  import numpy
  import tensorflow
  from ..None import custom_ops
label_desc: Use image node_id 11 for calling a global function with example usage: _setup_kernel(k) and returns: k