class_docstr: Auto suggest that can be turned on and of according to a certain condition.
class_docstr_tok: ["Auto","suggest","that","can","be","turned","on","and","of","according","to","a","certain","condition","."]
code: def get_suggestion(
      self, buffer: Buffer, document: Document
  ) -> Suggestion | None:
      if self.filter():
          return self.auto_suggest.get_suggestion(buffer, document)
  
      return None
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod
  from typing import TYPE_CHECKING, Callable
  from prompt_toolkit.eventloop import run_in_executor_with_context
  from .document import Document
  from .filters import Filter, to_filter
label_desc: Use image node_id 2 for calling the ConditionalAutoSuggest obj's underlying member method code with example usage: obj.get_suggestion(buffer, document) and returns: None, self