code: def test_extent(one_band_3dims):
      """Test that extent param returns a plot with the correct extent."""
  
      one_band_2dims = one_band_3dims[0]
      # shift extents by 10
      xmin = one_band_2dims.shape[1]
      xmax = one_band_2dims.shape[1] + xmin
      ymin = one_band_2dims.shape[0]
      ymax = one_band_2dims.shape[0] + ymin
      ext = [xmin, xmax, ymin, ymax]
  
      ax = ep.plot_bands(one_band_2dims, extent=ext)
      pl_extent = list(ax.get_xlim() + ax.get_ylim())
  
      # Cbar should be scaled between the vmin and vmax vals
      assert pl_extent == ext
      plt.close()
  
imports: import pytest
  import matplotlib.pyplot
  import matplotlib.colors
  import earthpy.plot
  import numpy
label_desc: Use image node_id 15 for calling a global function with example usage: test_extent(one_band_3dims) without return types