class_docstr: Test DataVisualizer base class
class_docstr_tok: ["Test","DataVisualizer","base","class"]
docstr: Assert target type is validated on init
code: def test_bad_target_type(self):
      """
      Assert target type is validated on init
      """
      msg = "unknown target color type 'foo'"
      with pytest.raises(YellowbrickValueError, match=msg):
          DataVisualizer(target_type="foo")
  
imports: import pytest
  import numpy
  import numpy.testing
  from tests.fixtures import Dataset
  from yellowbrick.base import Visualizer
  from yellowbrick.features.base import *
  from sklearn.base import BaseEstimator, TransformerMixin
  from sklearn.datasets import make_classification, make_regression
  from unittest.mock import Mock
label_desc: Use image node_id 8 for calling the TestDataVisualizer obj's underlying member method code with example usage: obj.test_bad_target_type() without return types