code: def testGcTwoOutputs(self):
      def fn(x, y):
          return nn_ops.sparse_softmax_cross_entropy_with_logits(
              logits=x, labels=y
          )[0]
  
      labels = constant_op.constant([0])
      logits = constant_op.constant([[0.0]])
      (grad,) = backprop.gradients_function(fn, [0])(logits, labels)
      self.assertAllEqual(grad, [[0.0]])
  
imports: from tensorflow.python.eager import backprop
  from tensorflow.python.eager import context
  from tensorflow.python.eager import record
  from tensorflow.python.eager import test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import custom_gradient
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_grad
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import variables
label_desc: Use image node_id 6 for calling the TapeTest obj's underlying member method code with example usage: obj.testGcTwoOutputs() and returns: nn_ops