class_docstr: Completer which can be used for autocompletion according to variables in
  the grammar. Each variable can have a different autocompleter.
  
  :param compiled_grammar: `GrammarCompleter` instance.
  :param completers: `dict` mapping variable names of the grammar to the
                     `Completer` instances to be used for each variable.
docstr: Yield all the possible completions for this input string.
  (The completer assumes that the cursor position was at the end of the
  input string.)
code: def _get_completions_for_match(self, match, complete_event):
      """
      Yield all the possible completions for this input string.
      (The completer assumes that the cursor position was at the end of the
      input string.)
      """
      for match_variable in match.end_nodes():
          varname = match_variable.varname
          start = match_variable.start
  
          completer = self.completers.get(varname)
  
          if completer:
              text = match_variable.value
  
              # Unwrap text.
              unwrapped_text = self.compiled_grammar.unescape(
                  varname, text
              )
  
              # Create a document, for the completions API (text/cursor_position)
              document = Document(unwrapped_text, len(unwrapped_text))
  
              # Call completer
              for completion in completer.get_completions(
                  document, complete_event
              ):
                  new_text = (
                      unwrapped_text[
                          : len(text) + completion.start_position
                      ]
                      + completion.text
                  )
  
                  # Wrap again.
                  yield Completion(
                      text=self.compiled_grammar.escape(
                          varname, new_text
                      ),
                      start_position=start - len(match.string),
                      display=completion.display,
                      display_meta=completion.display_meta,
                  )
  
file_path: catboost/contrib/python/prompt-toolkit/py2/prompt_toolkit/contrib/regular_languages/completion.py
imports: from __future__ import unicode_literals
  from prompt_toolkit.completion import Completer, Completion
  from prompt_toolkit.document import Document
  from .compiler import _CompiledGrammar
label_desc: Use image node_id 3 for calling the GrammarCompleter obj's underlying member method code with example usage: obj._get_completions_for_match(match, complete_event) without return types