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 testArithmeticRenames(self):
      with self.cached_session() as s:
          stuff = tf.split(1, 2, [[1, 2, 3, 4], [4, 5, 6, 7]])
          vals = s.run(stuff)
          self.assertAllEqual(
              vals, [[[1, 2], [4, 5]], [[3, 4], [6, 7]]]
          )
          self.assertAllEqual(
              tf.neg(tf.mul(tf.add(1, 2), tf.sub(5, 3))).eval(), -6
          )
          self.assertAllEqual(
              s.run(tf.listdiff([1, 2, 3], [3, 3, 4]))[0], [1, 2]
          )
          self.assertAllEqual(
              tf.list_diff([1, 2, 3], [3, 3, 4])[0].eval(), [1, 2]
          )
          a = [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]
          foo = np.where(np.less(a, 2), np.negative(a), a)
          self.assertAllEqual(
              tf.select(tf.less(a, 2), tf.neg(a), a).eval(), foo
          )
          self.assertAllEqual(
              tf.complex_abs(tf.constant(3 + 4.0j)).eval(), 5
          )
  
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 4 for calling the TestUpgrade obj's underlying member method code with example usage: obj.testArithmeticRenames() without return types