code: def compare(z, cmap, ve=1):
      # Create subplots and hide ticks
      fig, axs = plt.subplots(ncols=2, nrows=2)
      for ax in axs.flat:
          ax.set(xticks=[], yticks=[])
  
      # Illuminate the scene from the northwest
      ls = LightSource(azdeg=315, altdeg=45)
  
      axs[0, 0].imshow(z, cmap=cmap)
      axs[0, 0].set(xlabel="Colormapped Data")
  
      axs[0, 1].imshow(ls.hillshade(z, vert_exag=ve), cmap="gray")
      axs[0, 1].set(xlabel="Illumination Intensity")
  
      rgb = ls.shade(z, cmap=cmap, vert_exag=ve, blend_mode="hsv")
      axs[1, 0].imshow(rgb)
      axs[1, 0].set(xlabel='Blend Mode: "hsv" (default)')
  
      rgb = ls.shade(z, cmap=cmap, vert_exag=ve, blend_mode="overlay")
      axs[1, 1].imshow(rgb)
      axs[1, 1].set(xlabel='Blend Mode: "overlay"')
  
      return fig
  
imports: import matplotlib.pyplot
  import numpy
  from matplotlib import cbook
  from matplotlib.colors import LightSource
label_desc: Use image node_id 2 for calling a global function with example usage: compare(z, cmap, ve) and returns: fig