code: def testExcludedImport(self):
      # foo.baz module is excluded from changes.
      text = "import foo.baz"
      _, new_text = self._upgrade(RenameImports(), text)
      self.assertEqual(text, new_text)
  
      text = "import foo.baz as a"
      _, new_text = self._upgrade(RenameImports(), text)
      self.assertEqual(text, new_text)
  
      text = "from foo import baz as a"
      _, new_text = self._upgrade(RenameImports(), text)
      self.assertEqual(text, new_text)
  
      text = "from foo.baz import a"
      _, new_text = self._upgrade(RenameImports(), text)
      self.assertEqual(text, new_text)
  
imports: import ast
  import io
  import os
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
  from tensorflow.tools.compatibility import ast_edits
label_desc: Use image node_id 18 for calling the TestAstEdits obj's underlying member method code with example usage: obj.testExcludedImport() without return types