code: def test_plotting_extent():
      from rasterio.plot import reshape_as_image
  
      expected = (101985.0, 339315.0, 2611485.0, 2826915.0)
      with rasterio.open("tests/data/RGB.byte.tif") as src:
          assert plotting_extent(src) == expected
          assert (
              plotting_extent(
                  reshape_as_image(src.read()), transform=src.transform
              )
              == expected
          )
          assert (
              plotting_extent(src.read(1), transform=src.transform)
              == expected
          )
          # array requires a transform
          with pytest.raises(ValueError):
              plotting_extent(src.read(1))
  
imports: import pytest
  import matplotlib
  import numpy
  import rasterio
  from rasterio.plot import show, show_hist, get_plt, plotting_extent, adjust_band
  from rasterio.enums import ColorInterp
label_desc: Use image node_id 19 for calling a global function with example usage: test_plotting_extent() without return types