code: def test_stretch_image(rgb_image):
      """Test that running stretch actually stretches the data
      to a max value of 255 within the plot_rb fun."""
  
      im, _ = rgb_image
      np.place(im, im > 150, [0])
  
      ax = plot_rgb(im, stretch=True)
      max_val = ax.get_images()[0].get_array().max()
      assert max_val == 255
      plt.close()
  
imports: import numpy
  import numpy.ma
  import matplotlib.pyplot
  import pytest
  import rasterio
  from rasterio.plot import plotting_extent
  from earthpy.plot import plot_rgb, _stretch_im
  from earthpy.io import path_to_example
label_desc: Use image node_id 9 for calling a global function with example usage: test_stretch_image(rgb_image) without return types