class_docstr: To run: "python -m saliency.tf1.igradients_test" from the top-level directory.
code: def setUp(self):
      super().setUp()
      with tf.Graph().as_default() as graph:
          x = tf.placeholder(shape=[None, 3], dtype=tf.float32)
          contrib = [5 * x[:, 0], x[:, 1] * x[:, 1], tf.sin(x[:, 2])]
          y = contrib[0] + contrib[1] + contrib[2]
          sess = tf.Session(graph=graph)
          self.sess_spy = mock.MagicMock(wraps=sess)
  
          self.x_input_val = np.array([1.0, 2.0, 3.0])
  
          self.grad_instance = gradients.GradientSaliency(
              graph, self.sess_spy, y, x
          )
  
file_path: saliency/saliency/tf1/gradients_test.py
imports: import unittest
  import unittest.mock
  from .None import gradients
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling the GradientsTest obj's underlying member method code with example usage: obj.setUp() without return types