class_docstr: Test DataVisualizer base class
class_docstr_tok: ["Test","DataVisualizer","base","class"]
docstr: Assert exception is raised on unknown class label for get_colors
code: def test_get_colors_not_label_encoded(self):
      """
      Assert exception is raised on unknown class label for get_colors
      """
      X, y = self.discrete
      oz = DataVisualizer(classes="abcde").fit(X, y)
  
      with pytest.raises(
          YellowbrickKeyError, match="could not determine color"
      ):
          oz.get_colors(["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 16 for calling the TestDataVisualizer obj's underlying member method code with example usage: obj.test_get_colors_not_label_encoded() without return types