code: def test_waterfall_input_is_explanation():
      """Checks an error is raised if a non-Explanation object is passed as input."""
      with pytest.raises(
          TypeError,
          match="waterfall plot requires an `Explanation` object",
      ):
          _ = shap.plots.waterfall(np.random.randn(20, 5), show=False)
  
file_path: shap/tests/plots/test_waterfall.py
imports: import matplotlib.pyplot
  import numpy
  import pandas
  import pytest
  from sklearn.tree import DecisionTreeRegressor
  import shap
label_desc: Use image node_id 1 for calling a global function with example usage: test_waterfall_input_is_explanation() without return types