class_docstr: Wrapper around any other completer that will enable/disable the completions
  depending on whether the received condition is satisfied.
  
  :param completer: :class:`.Completer` instance.
  :param filter: :class:`.Filter` instance.
class_docstr_tok: ["Wrapper","around","any","other","completer","that","will","enable\/disable","the","completions","depending","on","whether","the","received","condition","is","satisfied",".",":","param","completer",":",":","class",":","`",".Completer","`","instance",".",":","param","filter",":",":","class",":","`",".Filter","`","instance","."]
code: def get_completions(
      self, document: Document, complete_event: CompleteEvent
  ) -> Iterable[Completion]:
      # Get all completions in a blocking way.
      if self.filter():
          yield from self.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 3 for calling the ConditionalCompleter obj's underlying member method code with example usage: obj.get_completions(document, complete_event) without return types