code: def test_num_plot_titles_mismatch_hist(image_array_2bands):
      """Raise an error if the number of titles != number of bands."""
      with pytest.raises(ValueError, match="number of plot titles"):
          ep.hist(image_array_2bands, title=["One", "too", "many"])
      plt.close()
  
imports: import numpy
  import pytest
  import matplotlib.pyplot
  import earthpy.plot
label_desc: Use image node_id 1 for calling a global function with example usage: test_num_plot_titles_mismatch_hist(image_array_2bands) without return types