code: def test_should_generate_ponderated_output(mocker):
      mocker.patch(
          "tf_explain.core.grad_cam.GradCAM.ponderate_output",
          side_effect=[
              mocker.sentinel.ponderated_1,
              mocker.sentinel.ponderated_2,
          ],
      )
  
      expected_output = [
          mocker.sentinel.ponderated_1,
          mocker.sentinel.ponderated_2,
      ]
  
      outputs = [mocker.sentinel.output_1, mocker.sentinel.output_2]
      grads = [mocker.sentinel.grads_1, mocker.sentinel.grads_2]
  
      output = GradCAM.generate_ponderated_output(outputs, grads)
  
      for real, expected in zip(output, expected_output):
          assert real == expected
  
file_path: tf-explain/tests/core/test_grad_cam.py
imports: import numpy
  import pytest
  import tensorflow
  from tf_explain.core.grad_cam import GradCAM
label_desc: Use image node_id 1 for calling a global function with example usage: test_should_generate_ponderated_output(mocker) without return types