docstr: Make sure that the UI can exit properly after launch.
docstr_tok: ["Make","sure","that","the","UI","can","exit","properly","after","launch","."]
code: def testRunUIExitImmediately(self):
      """Make sure that the UI can exit properly after launch."""
  
      ui = MockReadlineUI(command_sequence=["exit"])
      ui.run_ui()
  
      # No screen output should have happened.
      self.assertEqual(0, len(ui.observers["screen_outputs"]))
  
imports: import os
  import argparse
  import tempfile
  from tensorflow.python.debug.cli import cli_config
  from tensorflow.python.debug.cli import debugger_cli_common
  from tensorflow.python.debug.cli import readline_ui
  from tensorflow.python.debug.cli import ui_factory
  from tensorflow.python.framework import test_util
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 7 for calling the CursesTest obj's underlying member method code with example usage: obj.testRunUIExitImmediately() without return types