docstr: Check to make sure we don't have a file system race.
docstr_tok: ["Check","to","make","sure","we","do","n't","have","a","file","system","race","."]
code: def testInplace(self):
      """Check to make sure we don't have a file system race."""
      temp_file = tempfile.NamedTemporaryFile("w", delete=False)
      original = "tf.mul(a, b)\n"
      upgraded = "tf.multiply(a, b)\n"
      temp_file.write(original)
      temp_file.close()
      upgrader = ast_edits.ASTCodeUpgrader(tf_upgrade.TFAPIChangeSpec())
      upgrader.process_file(temp_file.name, temp_file.name)
      self.assertAllEqual(open(temp_file.name).read(), upgraded)
      os.unlink(temp_file.name)
  
imports: import io
  import os
  import tempfile
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
  from tensorflow.tools.compatibility import ast_edits
  from tensorflow.tools.compatibility import tf_upgrade
label_desc: Use image node_id 1 for calling the TestUpgradeFiles obj's underlying member method code with example usage: obj.testInplace() without return types