code: def test_number_of_hist_bins(basic_image):
      """Test that the number of bins is customizable."""
      n_bins = [1, 10, 100]
      for n in n_bins:
          f, ax = ep.hist(basic_image, bins=n)
          assert n == len(ax.patches)
          plt.close()
  
imports: import numpy
  import pytest
  import matplotlib.pyplot
  import earthpy.plot
label_desc: Use image node_id 7 for calling a global function with example usage: test_number_of_hist_bins(basic_image) without return types