class_docstr: Test various APIs that have been changed in 1.0.
  
  We also test whether a converted file is executable. test_file_v0_11.py
  aims to exhaustively test that API changes are convertible and actually
  work when run with current TensorFlow.
code: def _upgrade(self, old_file_text):
      in_file = io.StringIO(old_file_text)
      out_file = io.StringIO()
      upgrader = ast_edits.ASTCodeUpgrader(tf_upgrade.TFAPIChangeSpec())
      count, report, errors = upgrader.process_opened_file(
          "test.py", in_file, "test_out.py", out_file
      )
      return count, report, errors, out_file.getvalue()
  
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 TestUpgrade obj's underlying member method code with example usage: obj._upgrade(old_file_text) and returns: count,  report,  errors,  out_file