code: def plot_examples(colormaps):
      """
      Helper function to plot data with associated colormap.
      """
      np.random.seed(19680801)
      data = np.random.randn(30, 30)
      n = len(colormaps)
      fig, axs = plt.subplots(
          1,
          n,
          figsize=(n * 2 + 2, 3),
          layout="constrained",
          squeeze=False,
      )
      for [ax, cmap] in zip(axs.flat, colormaps):
          psm = ax.pcolormesh(
              data, cmap=cmap, rasterized=True, vmin=-4, vmax=4
          )
          fig.colorbar(psm, ax=ax)
      plt.show()
  
imports: import matplotlib.pyplot
  import numpy
  import matplotlib
  from matplotlib.colors import LinearSegmentedColormap, ListedColormap
label_desc: Use image node_id 1 for calling a global function with example usage: plot_examples(colormaps) without return types