docstr: Check the net output is expected
  nets_and_expects is a list of tuples (net, expect)
docstr_tok: ["Check","the","net","output","is","expected","nets_and_expects","is","a","list","of","tuples","(","net",",","expect",")"]
code: def CheckNetOutput(self, nets_and_expects):
      """
      Check the net output is expected
      nets_and_expects is a list of tuples (net, expect)
      """
      for net, expect in nets_and_expects:
          output = workspace.FetchBlob(net.Proto().external_output[-1])
          self.assertEqual(output, expect)
  
imports: from caffe2.python import control, core, test_util, workspace
  import logging
label_desc: Use image node_id 2 for calling the TestControl obj's underlying member method code with example usage: obj.CheckNetOutput(nets_and_expects) without return types