class_docstr: To run: "python -m saliency.core.base_test" from the top-level directory.
docstr: Tests that GetSmoothedMask works on int-based inputs.
docstr_tok: ["Tests","that","GetSmoothedMask","works","on","int-based","inputs","."]
code: def testGetSmoothedMaskDtype(self):
      """Tests that GetSmoothedMask works on int-based inputs."""
      n_samples = 20
      x_input = np.array([3, 2, 1])
      return_value = np.array([0.5, 0.2, 0.1])
      mock_get_mask = mock.MagicMock(return_value=return_value)
      core_instance = base.CoreSaliency()
      core_instance.GetMask = mock_get_mask
  
      smoothed_mask = core_instance.GetSmoothedMask(
          x_input, None, nsamples=n_samples
      )
  
      self.assertEqual(len(mock_get_mask.mock_calls), n_samples)
  
imports: import unittest
  import unittest.mock
  from .None import base
  import numpy
label_desc: Use image node_id 1 for calling the CoreSaliencyTest obj's underlying member method code with example usage: obj.testGetSmoothedMaskDtype() without return types