class_docstr: Readline-based Command-line UI.
class_docstr_tok: ["Readline-based","Command-line","UI","."]
code: def _readline_complete(self, text, state):
      (
          context,
          prefix,
          except_last_word,
      ) = self._analyze_tab_complete_input(text)
      candidates, _ = self._tab_completion_registry.get_completions(
          context, prefix
      )
      candidates = [
          (except_last_word + candidate) for candidate in candidates
      ]
      return candidates[state]
  
file_path: tensorflow/tensorflow/python/debug/cli/readline_ui.py
imports: import readline
  from tensorflow.python.debug.cli import base_ui
  from tensorflow.python.debug.cli import debugger_cli_common
label_desc: Use image node_id 3 for calling the ReadlineUI obj's underlying member method code with example usage: obj._readline_complete(text, state) and returns: candidates