docstr: Run UI with an initial command specified.
docstr_tok: ["Run","UI","with","an","initial","command","specified","."]
code: def testRunUIWithValidUsersCommands(self):
      """Run UI with an initial command specified."""
  
      ui = MockReadlineUI(
          command_sequence=["babble -n 3", "babble -n 6", "exit"]
      )
      ui.register_command_handler("babble", self._babble, "")
      ui.run_ui()
  
      screen_outputs = ui.observers["screen_outputs"]
      self.assertEqual(2, len(screen_outputs))
      self.assertEqual(["bar"] * 3, screen_outputs[0].lines)
      self.assertEqual(["bar"] * 6, screen_outputs[1].lines)
  
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 10 for calling the CursesTest obj's underlying member method code with example usage: obj.testRunUIWithValidUsersCommands() without return types