code: def test_hist_1band_masked_array(image_array_single_band):
      """Ensure that a masked single band arr plots & the number of bins is
      correct"""
      masked_arr = np.ma.masked_where(
          image_array_single_band == 4, image_array_single_band
      )
      nbins = 3
      f, ax = ep.hist(masked_arr, title=["TITLE HERE"], bins=nbins)
      assert len(f.axes) == 1
      assert len(ax.patches) == nbins
      plt.close(f)
  
imports: import numpy
  import pytest
  import matplotlib.pyplot
  import earthpy.plot
label_desc: Use image node_id 19 for calling a global function with example usage: test_hist_1band_masked_array(image_array_single_band) without return types