code: def test_plot_elbow_curve_from_results_bad_input_value_error(
      ploomber_value_error_message,
  ):
      n_clusters = range(1, 10, 2)
      sum_of_squares = [4572.2, 470.7, 389.9, 335.1, [305.5]]
  
      with pytest.raises(
          ValueError, match=ploomber_value_error_message
      ):
          plot.elbow_curve_from_results(
              n_clusters, sum_of_squares, times=None
          )
  
imports: import pytest
  import numpy
  from unittest.mock import Mock
  import matplotlib.pyplot
  from matplotlib.testing.decorators import image_comparison
  from sklearn.tree import DecisionTreeClassifier
  from sklearn.cluster import KMeans, MiniBatchKMeans
  from sklearn.datasets import load_iris
  from sklearn_evaluation import plot
  import sklearn_evaluation.plot.clustering
  from ploomber_core.warnings import PloomberDeprecationWarning
label_desc: Use image node_id 4 for calling a global function with example usage: test_plot_elbow_curve_from_results_bad_input_value_error(ploomber_value_error_message) without return types