docstr: Handle subscriptions to multiple outputs from the same op.
docstr_tok: ["Handle","subscriptions","to","multiple","outputs","from","the","same","op","."]
code: def testMultipleOutputs(self):
      """Handle subscriptions to multiple outputs from the same op."""
      sparse_tensor_1 = sparse_tensor.SparseTensor(
          indices=[[0, 0], [1, 2]], values=[1, 2], dense_shape=[3, 4]
      )
      sparse_tensor_2 = sparse_tensor.SparseTensor(
          indices=[[0, 0], [1, 2]], values=[2, 3], dense_shape=[3, 4]
      )
  
      # This op has three outputs.
      sparse_add = sparse_ops.sparse_add(
          sparse_tensor_1, sparse_tensor_2
      )
  
      self.assertEqual(3, len(sparse_add.op.outputs))
  
      c1 = constant_op.constant(1)
  
      with ops.control_dependencies(sparse_add.op.outputs):
          # This op depends on all the three outputs.
          neg = -c1
  
      shared = []
  
      def sub(t):
          shared.append(t)
          return t
  
      # Subscribe the three outputs at once.
      subscribe.subscribe(
          sparse_add.op.outputs,
          lambda t: script_ops.py_func(sub, [t], [t.dtype]),
      )
  
      with self.cached_session() as sess:
          self.evaluate([neg])
  
      # All three ops have been processed.
      self.assertEqual(3, len(shared))
  
imports: import collections
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import subscribe
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import script_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.ops import tensor_array_ops
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 9 for calling the SubscribeTest obj's underlying member method code with example usage: obj.testMultipleOutputs() and returns: t