code: def test_arr_parameter():
      """Raise an AttributeError if an array is not provided."""
      with pytest.raises(
          AttributeError, match="Input arr should be a numpy array"
      ):
          ep.plot_bands(arr=(1, 2))
      plt.close()
  
imports: import pytest
  import matplotlib.pyplot
  import matplotlib.colors
  import earthpy.plot
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: test_arr_parameter() without return types