code: def test_show_hist():
      """
      This test only verifies that code up to the point of plotting with
      matplotlib works correctly.  Tests do not exercise matplotlib.
      """
      with rasterio.open("tests/data/RGB.byte.tif") as src:
          try:
              show_hist((src, 1), bins=256)
              fig = plt.gcf()
              plt.close(fig)
          except ImportError:
              pass
  
          try:
              show_hist(src.read(), bins=256)
              fig = plt.gcf()
              plt.close(fig)
          except ImportError:
              pass
  
          try:
              fig, ax = plt.subplots(1)
              show_hist(src.read(), bins=256, ax=ax)
              fig = plt.gcf()
              plt.close(fig)
          except ImportError:
              pass
  
          try:
              show_hist(src.read(), range=[0, 255])
              fig = plt.gcf()
              plt.close(fig)
          except ImportError:
              pass
  
          try:
              show_hist(src)
              fig = plt.gcf()
              ax = plt.gca()
              assert ax.get_legend_handles_labels()[1] == [
                  "1",
                  "2",
                  "3",
              ]
              plt.close(fig)
          except ImportError:
              pass
  
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 13 for calling a global function with example usage: test_show_hist() without return types