code: def test_loops(self):
      with Task() as task:
          out_actual = self._actual_loop()
      with LocalSession() as session:
          session.run(task)
          expected = self._expected_loop()
          actual = [o.fetch() for o in out_actual]
          for e, a in zip(expected, actual):
              self.assertEqual(e, a)
  
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 5 for calling the TestNetBuilder obj's underlying member method code with example usage: obj.test_loops() without return types