class_docstr: Test ResidualPlot visualizer
class_docstr_tok: ["Test","ResidualPlot","visualizer"]
docstr: Image similarity test using the residuals plot quick method
docstr_tok: ["Image","similarity","test","using","the","residuals","plot","quick","method"]
code: def test_residuals_quick_method(self):
      """
      Image similarity test using the residuals plot quick method
      """
      _, ax = plt.subplots()
  
      model = Lasso(random_state=19)
      oz = residuals_plot(
          model,
          self.data.X.train,
          self.data.y.train,
          self.data.X.test,
          self.data.y.test,
          ax=ax,
          line_color="#cccccc",
          test_color="r",
          train_color="y",
          show=False,
      )
  
      assert isinstance(oz, ResidualsPlot)
      self.assert_images_similar(oz)
  
imports: import sys
  import pytest
  import matplotlib
  import matplotlib.pyplot
  from yellowbrick.datasets import load_energy
  from yellowbrick.exceptions import YellowbrickValueError
  from yellowbrick.regressor.residuals import ResidualsPlot, residuals_plot
  from unittest import mock
  from tests.fixtures import Dataset, Split
  from tests.base import IS_WINDOWS_OR_CONDA, VisualTestCase
  from sklearn.datasets import make_regression
  from sklearn.linear_model import Ridge, Lasso
  from sklearn.neural_network import MLPRegressor
  from sklearn.linear_model import LinearRegression
  from sklearn.model_selection import train_test_split
  from sklearn.pipeline import Pipeline
  from sklearn.preprocessing import MinMaxScaler
label_desc: Use image node_id 7 for calling the TestResidualsPlot obj's underlying member method code with example usage: obj.test_residuals_quick_method() without return types