code: def test_cbar_param(one_band_3dims):
      """Test that the colorbar param works for a single band arr"""
      one_band_2dims = one_band_3dims[0]
      ax = ep.plot_bands(one_band_2dims, scale=True)
      arr = ax.get_images()[0].get_array()
      c_bar = ax.images[0].colorbar
  
      # Return arr should be scaled by default between 0-255
      assert arr.min() == 0 and arr.max() == 255
      # A cbar should be drawn in this plot
      assert c_bar
      plt.close()
  
imports: import pytest
  import matplotlib.pyplot
  import matplotlib.colors
  import earthpy.plot
  import numpy
label_desc: Use image node_id 10 for calling a global function with example usage: test_cbar_param(one_band_3dims) without return types