code: def test_generate_noisy_images(mocker):
      input_shape = (10, 28, 28, 1)
      num_samples = 3
      mocker.patch(
          "tf_explain.core.smoothgrad.np.random.normal",
          return_value=np.ones((30, 28, 28, 1)),
      )
  
      images = np.ones(input_shape)
      output = SmoothGrad.generate_noisy_images(
          images, num_samples=num_samples, noise=1
      )
  
      np.testing.assert_array_equal(
          output, 2 * np.ones((30, 28, 28, 1))
      )
  
imports: import numpy
  from tf_explain.core.smoothgrad import SmoothGrad
label_desc: Use image node_id 2 for calling a global function with example usage: test_generate_noisy_images(mocker) without return types