code: def test_plot_validation_curve_bad_input_value_error(
      ploomber_value_error_message,
  ):
      from examples.validation_curve import (
          train_scores,
          test_scores,
          param_range,
          param_name,
      )
  
      bad_train_scores = train_scores[:2]
      with pytest.raises(
          ValueError, match=ploomber_value_error_message
      ) as e:
          plot.validation_curve(
              bad_train_scores,
              test_scores,
              param_range,
              param_name,
              semilogx=True,
          )
  
      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 12 for calling a global function with example usage: test_plot_validation_curve_bad_input_value_error(ploomber_value_error_message) without return types