code: def smooth2d(A, sigma=3):
      window_len = max(int(sigma), 3) * 2 + 1
      A = np.apply_along_axis(smooth1d, 0, A, window_len)
      A = np.apply_along_axis(smooth1d, 1, A, window_len)
      return A
  
imports: import matplotlib.pyplot
  import numpy
  from matplotlib.artist import Artist
  import matplotlib.cm
  from matplotlib.colors import LightSource
  import matplotlib.transforms
label_desc: Use image node_id 2 for calling a global function with example usage: smooth2d(A, sigma) and returns: A