code: def test_eval(self):
      m = self.simple_model
      inp, outp, kp = m.get("input", "output", "keep_prob")
  
      # create an input batch
      examples = np.random.rand(1000, 10).astype("float32")
  
      # first, eval using tf
      x, y, keep_prob, sess = self.get(
          "simple", "x", "y", "keep_prob", "sess"
      )
      rtf = y.eval(
          session=sess, feed_dict={x: examples, keep_prob: 1.0}
      )
  
      # then, eval using td
      rtd = outp.eval({inp: examples, kp: 1.0})
  
      # no element in the diff array should be larger than 1e-7
      maxdiff = np.max(np.abs(rtf - rtd))
      self.assertLess(maxdiff, 1e-7)
  
file_path: tfdeploy/tests/core.py
imports: import numpy
  from .base import TestCase, td
label_desc: Use image node_id 4 for calling the CoreTestCase obj's underlying member method code with example usage: obj.test_eval() without return types