class_docstr: Meta Test: ImageComparison test cases
class_docstr_tok: ["Meta","Test",":","ImageComparison","test","cases"]
docstr: Test that a random visualization is correctly compared to a baseline
docstr_tok: ["Test","that","a","random","visualization","is","correctly","compared","to","a","baseline"]
code: def test_random_visualizer(self):
      """
      Test that a random visualization is correctly compared to a baseline
      """
      viz = RandomVisualizer(random_state=111).fit()
      viz.finalize()
  
      assert mpl.get_backend() == "agg"
  
      compare = self.assert_images_similar(viz, tol=1.0)
      assert_path_exists(compare.actual_image_path)
      assert_path_exists(compare.baseline_image_path)
  
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 6 for calling the TestMetaImageComparison obj's underlying member method code with example usage: obj.test_random_visualizer() without return types