class_docstr: Test the ValidationCurve visualizer
class_docstr_tok: ["Test","the","ValidationCurve","visualizer"]
docstr: Test learning curve with bad input for training size.
docstr_tok: ["Test","learning","curve","with","bad","input","for","training","size","."]
code: def test_bad_train_sizes(self):
      """
      Test learning curve with bad input for training size.
      """
      with pytest.raises(YellowbrickValueError):
          ValidationCurve(SVC(), param_name="gamma", param_range=100)
  
imports: import sys
  import pytest
  import numpy
  from unittest.mock import patch
  from tests.base import VisualTestCase
  from sklearn.svm import SVC
  from sklearn.naive_bayes import BernoulliNB
  from sklearn.tree import DecisionTreeRegressor
  from sklearn.preprocessing import OneHotEncoder
  from sklearn.neighbors import KNeighborsClassifier
  from sklearn.model_selection import ShuffleSplit, StratifiedKFold
  from yellowbrick.datasets import load_mushroom
  from yellowbrick.exceptions import YellowbrickValueError
  from yellowbrick.model_selection.validation_curve import *
label_desc: Use image node_id 8 for calling the TestValidationCurve obj's underlying member method code with example usage: obj.test_bad_train_sizes() without return types