code: def test_no_data_val(rgb_image):
      """An array with a nodata value that is stretched should plot."""
  
      a_rgb_image, _ = rgb_image
      a_rgb_image = a_rgb_image.astype("int16")
      a_rgb_image[a_rgb_image == 255] = -9999
      im = plot_rgb(a_rgb_image, stretch=True)
  
      assert len(im.get_images()) == 1
      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 3 for calling a global function with example usage: test_no_data_val(rgb_image) without return types