code: def test_ops(self):
      m = self.simple_model
      op = m.get("output").op
  
      # the root tensor operator is a softmax op ...
      self.assertIsInstance(op, td.Softmax)
  
      # ... and has one input ...
      self.assertEqual(len(op.inputs), 1)
  
      # ... whose op is an add op
      self.assertIsInstance(op.inputs[0].op, td.Add)
  
file_path: tfdeploy/tests/core.py
imports: import numpy
  from .base import TestCase, td
label_desc: Use image node_id 3 for calling the CoreTestCase obj's underlying member method code with example usage: obj.test_ops() without return types