code: def in_paste_mode() -> bool:
      return get_app().paste_mode()
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, cast
  from prompt_toolkit.application.current import get_app
  from prompt_toolkit.cache import memoized
  from prompt_toolkit.enums import EditingMode
  from .base import Condition
label_desc: Use image node_id 14 for calling a global function with example usage: in_paste_mode() and returns: get_app