code: def testUIFactoryRaisesExceptionOnInvalidUITypeGivenAvailable(self):
      with self.assertRaisesRegex(
          ValueError, "Invalid ui_type: 'readline'"
      ):
          ui_factory.get_ui(
              "readline",
              available_ui_types=["curses"],
              config=cli_config.CLIConfig(
                  config_file_path=self._tmp_config_path
              ),
          )
  
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 6 for calling the CursesTest obj's underlying member method code with example usage: obj.testUIFactoryRaisesExceptionOnInvalidUITypeGivenAvailable() without return types