class_docstr: CooksDistance visual test cases
class_docstr_tok: ["CooksDistance","visual","test","cases"]
docstr: Test the cooks_distance quick method on a random dataset
docstr_tok: ["Test","the","cooks_distance","quick","method","on","a","random","dataset"]
code: def test_cooks_distance_quickmethod(self):
      """
      Test the cooks_distance quick method on a random dataset
      """
      _, ax = plt.subplots()
      viz = cooks_distance(
          self.data.X,
          self.data.y,
          ax=ax,
          draw_threshold=False,
          linefmt="r-",
          markerfmt="ro",
          show=False,
      )
  
      assert_fitted(viz)
      self.assert_images_similar(viz)
  
file_path: yellowbrick/tests/test_regressor/test_influence.py
imports: import pytest
  import numpy
  import matplotlib.pyplot
  from tests.base import VisualTestCase
  from tests.fixtures import Dataset
  from sklearn.datasets import make_regression
  from yellowbrick.regressor.influence import *
  from yellowbrick.datasets import load_concrete
label_desc: Use image node_id 2 for calling the TestCooksDistance obj's underlying member method code with example usage: obj.test_cooks_distance_quickmethod() without return types