code: def eval(self, x, feed_dict=None):
      sess = tf.Session()
      op = tf.global_variables_initializer()
      if op:
          sess.run(op)
      if isinstance(x, list):
          return sess.run(x, feed_dict=feed_dict)
      else:
          return sess.run([x], feed_dict=feed_dict)[0]
  
file_path: tensorpack/tensorpack/models/models_test.py
imports: import logging
  import unittest
  import numpy
  from ..compat import tfv1
  from .conv2d import Conv2DTranspose
  from .pool import FixedUnPooling
label_desc: Use image node_id 1 for calling the TestModel obj's underlying member method code with example usage: obj.eval(x, feed_dict) and returns: sess, sess