class_docstr: To run: "python -m saliency.core.blur_ig_test" top-level saliency directory.
docstr: Tests that BlurIG errors with incorrect model outputs.
docstr_tok: ["Tests","that","BlurIG","errors","with","incorrect","model","outputs","."]
code: def testBlurIGGetMaskError(self):
      """Tests that BlurIG errors with incorrect model outputs."""
      x_steps = 2001
      call_model_function = self.create_bad_call_model_function()
      expected_error = SHAPE_ERROR_MESSAGE[
          INPUT_OUTPUT_GRADIENTS
      ].format("\\(100, 5, 5, 1\\)", "\\(5, 5, 1\\)")
  
      # Expect error because shape of gradients returned don't match.
      with self.assertRaisesRegex(ValueError, expected_error):
          self.blur_ig_instance.GetMask(
              x_value=self.x_input_val,
              call_model_function=call_model_function,
              call_model_args=None,
              max_sigma=self.max_sigma,
              steps=x_steps,
              batch_size=100,
          )
  
file_path: saliency/saliency/core/blur_ig_test.py
imports: import unittest
  import unittest.mock
  from .None import blur_ig
  from .base import INPUT_OUTPUT_GRADIENTS
  from .base import SHAPE_ERROR_MESSAGE
  import numpy
label_desc: Use image node_id 8 for calling the BlurIgTest obj's underlying member method code with example usage: obj.testBlurIGGetMaskError() without return types