code: def test_operator(self):
      def make_net():
          subnet = core.Net("subnet")
          subnet.Add(["X", "Y"], "Z")
  
          net = core.Net("net")
          net.CreateScope([], "W")
  
          net.Do(
              ["outer_X", "outer_Y", "W"],
              ["outer_Z", "W"],
              net=subnet.Proto(),
              inner_blobs=["X", "Y", "Z"],
              outer_blobs_idx=[0, 1, 2],
          )
  
          return net
  
      net = make_net()
  
      workspace.ResetWorkspace()
      workspace.FeedBlob("outer_X", np.asarray([1, 2]))
      workspace.FeedBlob("outer_Y", np.asarray([3, 4]))
  
      workspace.RunNetOnce(net)
      outer_Z_val = workspace.FetchBlob("outer_Z")
      self.assertTrue(np.all(outer_Z_val == np.asarray([4, 6])))
  
imports: from caffe2.python import core, workspace
  from caffe2.python.test_util import TestCase
  import numpy
  import unittest
label_desc: Use image node_id 1 for calling the DoOpTest obj's underlying member method code with example usage: obj.test_operator() and returns: net