class_docstr: Meta Test: ImageComparison test cases
class_docstr_tok: ["Meta","Test",":","ImageComparison","test","cases"]
docstr: Test that a missing baseline image raises an exception
docstr_tok: ["Test","that","a","missing","baseline","image","raises","an","exception"]
code: def test_missing_baseline_image(self):
      """
      Test that a missing baseline image raises an exception
      """
      viz = RandomVisualizer(random_state=14).fit()
      viz.finalize()
  
      # Assert the baseline image does not exist
      assert_path_not_exists(
          BASELINE_IMAGES,
          "test_meta",
          "test_missing_baseline_image.png",
      )
  
      with pytest.raises(
          ImageComparisonFailure, match="image does not exist"
      ):
          self.assert_images_similar(viz)
  
      # Assert the actual image was created (to copy to baseline)
      assert_path_exists(
          ACTUAL_IMAGES, "test_meta", "test_missing_baseline_image.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 5 for calling the TestMetaImageComparison obj's underlying member method code with example usage: obj.test_missing_baseline_image() without return types