class_docstr: Test various APIs that have been changed in 2.0.
code: def testSoftmaxCrossEntropyWithLogits(self):
      out = tf.nn.softmax_cross_entropy_with_logits(
          logits=[0.1, 0.8], labels=[0, 1]
      )
      self.assertAllClose(out, 0.40318608)
      out = tf.nn.softmax_cross_entropy_with_logits_v2(
          logits=[0.1, 0.8], labels=[0, 1]
      )
      self.assertAllClose(out, 0.40318608)
  
file_path: tensorflow-upstream/tensorflow/tools/compatibility/testdata/test_file_v1_12.py
imports: import tensorflow.compat.v1
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
label_desc: Use image node_id 7 for calling the TestUpgrade obj's underlying member method code with example usage: obj.testSoftmaxCrossEntropyWithLogits() without return types