class_docstr: Test DataVisualizer base class
class_docstr_tok: ["Test","DataVisualizer","base","class"]
docstr: Ensure user specified target type overrides auto discovery
code: def test_user_overrides_auto_target(self, dataset):
      """
      Ensure user specified target type overrides auto discovery
      """
      X, y = getattr(self, dataset)
      target_type = (
          TargetType.CONTINUOUS
          if dataset == "discrete"
          else TargetType.DISCRETE
      )
  
      oz = DataVisualizer(target_type=target_type)
      assert oz.target_type != TargetType.AUTO
      oz.fit(X, y)
      assert oz.target_type == target_type
  
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 5 for calling the TestDataVisualizer obj's underlying member method code with example usage: obj.test_user_overrides_auto_target(dataset) without return types