class_docstr: Test ConfusionMatrix visualizer
class_docstr_tok: ["Test","ConfusionMatrix","visualizer"]
docstr: Test the quick method with a random dataset
docstr_tok: ["Test","the","quick","method","with","a","random","dataset"]
code: def test_quick_method(self):
      """
      Test the quick method with a random dataset
      """
      X, y = make_classification(
          n_samples=400,
          n_features=20,
          n_informative=8,
          n_redundant=8,
          n_classes=2,
          n_clusters_per_class=4,
          random_state=27,
      )
  
      _, ax = plt.subplots()
      model = DecisionTreeClassifier(random_state=25)
  
      # compare the images
      visualizer = confusion_matrix(model, X, y, ax=ax, show=False)
      self.assert_images_similar(visualizer)
  
imports: import sys
  import pytest
  import yellowbrick
  import numpy.testing
  import matplotlib.pyplot
  from yellowbrick.exceptions import ModelError
  from yellowbrick.datasets import load_occupancy
  from yellowbrick.classifier.confusion_matrix import *
  from unittest.mock import patch
  from tests.fixtures import Dataset, Split
  from tests.base import IS_WINDOWS_OR_CONDA, VisualTestCase
  from sklearn.svm import SVC
  from sklearn.naive_bayes import GaussianNB
  from sklearn.preprocessing import LabelEncoder
  from sklearn.tree import DecisionTreeClassifier
  from sklearn.linear_model import LogisticRegression
  from sklearn.linear_model import PassiveAggressiveRegressor
  from sklearn.model_selection import train_test_split
  from sklearn.datasets import load_digits, make_classification
  from sklearn.preprocessing import MinMaxScaler
  from sklearn.pipeline import Pipeline
label_desc: Use image node_id 10 for calling the TestConfusionMatrix obj's underlying member method code with example usage: obj.test_quick_method() without return types