code: def get_app_or_none() -> Application[Any] | None:
      """
      Get the current active (running) Application, or return `None` if no
      application is running.
      """
      session = _current_app_session.get()
      return session.app
  
file_path: catboost/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/current.py
imports: from __future__ import annotations
  from contextlib import contextmanager
  from contextvars import ContextVar
  from typing import TYPE_CHECKING, Any, Generator
label_desc: Use image node_id 3 for calling a global function with example usage: get_app_or_none() and returns: session