class_docstr: To run: "python -m saliency.core.integrated_gradients_test" from the top-level directory.
docstr: Tests that IG steps are created and aggregated correctly.
docstr_tok: ["Tests","that","IG","steps","are","created","and","aggregated","correctly","."]
code: def testIntegratedGradientsGetMask(self):
      """Tests that IG steps are created and aggregated correctly."""
      x_steps = 1000
      call_model_function = self.create_call_model_function()
  
      mask = self.ig_instance.GetMask(
          x_value=self.x_input_val,
          call_model_function=call_model_function,
          call_model_args=None,
          x_baseline=self.x_baseline_val,
          x_steps=x_steps,
      )
  
      # Verify the result.
      np.testing.assert_almost_equal(mask, self.expected_val, decimal=2)
      self.assertEqual(x_steps, call_model_function.num_calls)
  
file_path: saliency/saliency/core/integrated_gradients_test.py
imports: import unittest
  import unittest.mock
  from .base import INPUT_OUTPUT_GRADIENTS
  from .base import SHAPE_ERROR_MESSAGE
  from .None import integrated_gradients
  import numpy
label_desc: Use image node_id 4 for calling the IntegratedGradientsTest obj's underlying member method code with example usage: obj.testIntegratedGradientsGetMask() without return types