code: def test_plot_classification_report_bad_input_value_error(
      y, ploomber_value_error_message
  ):
      _, y_pred = y
  
      with pytest.raises(
          ValueError, match=ploomber_value_error_message
      ):
          plot.ClassificationReport.from_raw_data([1, 2, 1], y_pred)
  
      with pytest.raises(
          ValueError, match=ploomber_value_error_message
      ):
          plot.classification_report(
              [1, 2, 1], y_pred, target_names=["Not spam", "Spam"]
          )
  
file_path: sklearn-evaluation/tests/test_classification_report.py
imports: import pytest
  import numpy
  from sklearn_evaluation import plot, __version__
  import warnings
label_desc: Use image node_id 6 for calling a global function with example usage: test_plot_classification_report_bad_input_value_error(y, ploomber_value_error_message) without return types