code: def test_issue3007():
      """Don't squeeze further than 2D."""
      with rasterio.open("tests/data/RGB.byte.tif") as src:
          arr = src.read(1)[0:1, :]
          assert arr.shape == (1, 791)
          show(arr)
          fig = plt.gcf()
          plt.close(fig)
  
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 21 for calling a global function with example usage: test_issue3007() without return types