code: def norm_filter(
      length, norm_ord=2, norm_func=lambda n: np.exp(-n), clip=True
  ):
      arr = np.indices((length, length)) - ((length - 1) / 2)
      func1d = lambda x: norm_func(np.linalg.norm(x, ord=norm_ord))
      result = np.apply_along_axis(func1d, axis=0, arr=arr)
      if clip:
          bound = np.amax(np.amin(result, axis=0), axis=0)
          result *= np.logical_or(
              result >= bound, np.isclose(result, bound, atol=0)
          )
      return result
  
file_path: lucid/lucid/scratch/rl_util/util.py
imports: import numpy
  import tensorflow
  import scipy.ndimage
  import lucid.optvis.render
  from lucid.misc.io.collapse_channels import hue_to_rgb
label_desc: Use image node_id 7 for calling a global function with example usage: norm_filter(length, norm_ord, norm_func, clip) and returns: result