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 __init__(
      self, get_completer: Callable[[], Completer | None]
  ) -> None:
      self.get_completer = get_completer
  
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 1 to create a new DynamicCompleter object from inherited base classes: Completer with example: obj = DynamicCompleter(get_completer)