class_docstr: Test various APIs that have been changed in 1.0.
  
  This test will not run in current TensorFlow, but did run in 0.11.
  This file is intended to be converted by a genrule() that uses the converter
  so that a 1.0 compatible version of this file is generated. That is run as
  a unit test if the converter is successful.
code: def testCrossEntropy(self):
      # TODO(aselle): Test sparse_softmax_...
      with self.cached_session():
          labels = [0.8, 0.5, 0.2, 0.1]
          logits = [0.9, 0.1, 0.3, 0.1]
          self.assertAllEqual(
              tf.nn.softmax_cross_entropy_with_logits(
                  logits, labels
              ).eval(),
              tf.nn.softmax_cross_entropy_with_logits(
                  labels=labels, logits=logits
              ).eval(),
          )
          self.assertAllEqual(
              tf.nn.sigmoid_cross_entropy_with_logits(
                  logits, labels
              ).eval(),
              tf.nn.sigmoid_cross_entropy_with_logits(
                  labels=labels, logits=logits
              ).eval(),
          )
  
file_path: tensorflow-upstream/tensorflow/tools/compatibility/testdata/test_file_v0_11.py
imports: import shutil
  import tempfile
  import numpy
  import tensorflow
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
label_desc: Use image node_id 6 for calling the TestUpgrade obj's underlying member method code with example usage: obj.testCrossEntropy() without return types