class_docstr: Meta Test: ImageComparison test cases
class_docstr_tok: ["Meta","Test",":","ImageComparison","test","cases"]
docstr: Test that not close visualizers raise an assertion error.
docstr_tok: ["Test","that","not","close","visualizers","raise","an","assertion","error","."]
code: def test_random_visualizer_not_close(self):
      """
      Test that not close visualizers raise an assertion error.
      """
      # Baseline image random_state=224
      # NOTE: if regenerating baseline images, skip this one or change random state!
      viz = RandomVisualizer(random_state=224).fit()
      viz.finalize()
  
      with pytest.raises(
          ImageComparisonFailure, match="images not close"
      ):
          # If failing, perhaps baseline images were regenerated? See note above.
          self.assert_images_similar(viz, tol=0.5)
  
      # Assert there is a diff
      assert_path_exists(
          ACTUAL_IMAGES,
          "test_meta",
          "test_random_visualizer_not_close-failed-diff.png",
      )
  
imports: import os
  import pytest
  import inspect
  import matplotlib
  from tests.rand import RandomVisualizer
  from unittest.mock import MagicMock, patch
  from tests.base import ACTUAL_IMAGES, BASELINE_IMAGES
  from tests.base import VisualTestCase, ImageComparison
  from yellowbrick.exceptions import ImageComparisonFailure
label_desc: Use image node_id 7 for calling the TestMetaImageComparison obj's underlying member method code with example usage: obj.test_random_visualizer_not_close() without return types