code: def test(self):
      with self.test_session() as sess:
          mu = Normal(loc=0.0, scale=1.0)
          x = Normal(loc=mu, scale=1.0, sample_shape=5)
  
          qmu = Normal(loc=tf.Variable(0.0), scale=tf.constant(1.0))
  
          inference = ed.KLqp({mu: qmu}, data={x: tf.zeros(5)})
          inference.initialize()
          tf.global_variables_initializer().run()
  
          first = sess.run(inference.t)
          inference.update()
          second = sess.run(inference.t)
          self.assertEqual(first, second - 1)
          sess.run(inference.reset)
          third = sess.run(inference.t)
          self.assertEqual(first, third)
  
file_path: edward/tests/inferences/inference_reset_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import edward
  import tensorflow
  from edward.models import Normal
label_desc: Use image node_id 1 for calling the test_inference_reset_class obj's underlying member method code with example usage: obj.test() without return types