code: def test_multiple_definition(self):
      job = example_job()
      with job:
          with Task(workspace_type=WorkspaceType.GLOBAL):
              ops.Add([ops.Const(0), ops.Const(1)], "out1")
          with Task(workspace_type=WorkspaceType.GLOBAL):
              ops.Add([ops.Const(2), ops.Const(3)], "out1")
      with self.assertRaises(AssertionError):
          net_printer.analyze(job)
  
file_path: pytorch/caffe2/python/net_printer_test.py
imports: from caffe2.python import net_printer
  from caffe2.python.checkpoint import Job
  from caffe2.python.net_builder import ops
  from caffe2.python.task import Task, final_output, WorkspaceType
  import unittest
label_desc: Use image node_id 4 for calling the TestNetPrinter obj's underlying member method code with example usage: obj.test_multiple_definition() without return types