class_docstr: To run: "python -m saliency.core.blur_ig_test" top-level saliency directory.
docstr: Tests that call_model_function receives correct inputs.
docstr_tok: ["Tests","that","call_model_function","receives","correct","inputs","."]
code: def testBlurIGCallModelArgs(self):
      """Tests that call_model_function receives correct inputs."""
      x_steps = 50
      expected_keys = [INPUT_OUTPUT_GRADIENTS]
      call_model_args = {"foo": "bar"}
      mock_call_model = mock.MagicMock(
          return_value={INPUT_OUTPUT_GRADIENTS: [self.x_input_val]}
      )
  
      self.blur_ig_instance.GetMask(
          x_value=self.x_input_val,
          call_model_function=mock_call_model,
          call_model_args=call_model_args,
          max_sigma=self.max_sigma,
          steps=x_steps,
      )
      calls = mock_call_model.mock_calls
  
      self.assertEqual(len(calls), x_steps)
      for call in calls:
          kwargs = call[2]
          self.assertEqual(
              kwargs["call_model_args"],
              call_model_args,
              msg="function was called with incorrect call_model_args.",
          )
          self.assertEqual(
              kwargs["expected_keys"],
              expected_keys,
              msg="function was called with incorrect expected_keys.",
          )
  
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 7 for calling the BlurIgTest obj's underlying member method code with example usage: obj.testBlurIGCallModelArgs() without return types