class_docstr: Test subclass of ReadlineUI that bypasses terminal manipulations.
code: def __init__(self, on_ui_exit=None, command_sequence=None):
      _, config_file_path = tempfile.mkstemp()  # safe to ignore fd
      readline_ui.ReadlineUI.__init__(
          self,
          on_ui_exit=on_ui_exit,
          config=cli_config.CLIConfig(
              config_file_path=config_file_path
          ),
      )
  
      self._command_sequence = command_sequence
      self._command_counter = 0
  
      self.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 1 to create a new MockReadlineUI object from inherited base classes: readline_ui with example: obj = MockReadlineUI(on_ui_exit, command_sequence)