code: def test_ops(self):
      with NetBuilder() as nb:
          y = _test_loop()
          z, w, a, b = _test_outer()
          p = _test_if(ops.Const(75))
          q = _test_if(ops.Const(25))
      plan = Plan("name")
      plan.AddStep(to_execution_step(nb))
      ws = workspace.C.Workspace()
      ws.run(plan)
      expected_results = [
          (y, 5),
          (z, False),
          (w, True),
          (a, False),
          (b, False),
          (p, 2),
          (q, 3),
      ]
      for b, expected in expected_results:
          actual = ws.blobs[str(b)].fetch()
          self.assertEqual(actual, expected)
  
imports: from caffe2.python import workspace
  from caffe2.python.core import Plan, to_execution_step, Net
  from caffe2.python.task import Task, TaskGroup, final_output
  from caffe2.python.net_builder import ops, NetBuilder
  from caffe2.python.session import LocalSession
  import unittest
  import threading
label_desc: Use image node_id 1 for calling the TestNetBuilder obj's underlying member method code with example usage: obj.test_ops() without return types