code: def test_single_band_3dims(one_band_3dims):
      """Test single band plot with three dimensions.
  
      If you provide a single band array with 3 dimensions (shape[0]==1
      test that it still plots and only returns a single axis.
      """
      ax = ep.plot_bands(one_band_3dims)
      arr = ax.get_images()[0].get_array()
      assert arr.ndim == 2
      assert len(ax.get_images()) == 1
      plt.close()
  
imports: import pytest
  import matplotlib.pyplot
  import matplotlib.colors
  import earthpy.plot
  import numpy
label_desc: Use image node_id 8 for calling a global function with example usage: test_single_band_3dims(one_band_3dims) without return types