code: def test_plot_metrics_at_thresholds_bad_input_value_error(
      y, ploomber_value_error_message
  ):
      y_true, y_pred = y
  
      def fn(a, b):
          return [1, 2, 3]
  
      with pytest.raises(
          ValueError, match=ploomber_value_error_message
      ) as e:
          plot.metrics_at_thresholds(fn, y_true, y_pred)
  
      assert "x and y must have same first dimension" in str(e.value)
  
file_path: sklearn-evaluation/tests/test_plot_bad_input.py
imports: import pytest
  import numpy
  from sklearn_evaluation import plot
label_desc: Use image node_id 8 for calling a global function with example usage: test_plot_metrics_at_thresholds_bad_input_value_error(y, ploomber_value_error_message) and returns: list