class_docstr: Completer class that can dynamically returns any Completer.
  
  :param get_completer: Callable that returns a :class:`.Completer` instance.
class_docstr_tok: ["Completer","class","that","can","dynamically","returns","any","Completer",".",":","param","get_completer",":","Callable","that","returns","a",":","class",":","`",".Completer","`","instance","."]
code: def get_completions(
      self, document: Document, complete_event: CompleteEvent
  ) -> Iterable[Completion]:
      completer = self.get_completer() or DummyCompleter()
      return completer.get_completions(document, complete_event)
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod
  from typing import AsyncGenerator, Callable, Iterable, Sequence
  from prompt_toolkit.document import Document
  from prompt_toolkit.eventloop import aclosing, generator_to_async_generator
  from prompt_toolkit.filters import FilterOrBool, to_filter
  from prompt_toolkit.formatted_text import AnyFormattedText, StyleAndTextTuples
label_desc: Use image node_id 2 for calling the DynamicCompleter obj's underlying member method code with example usage: obj.get_completions(document, complete_event) and returns: completer