code: def has_arg() -> bool:
      "Enable when the input processor has an 'arg'."
      return get_app().key_processor.arg is not None
  
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 10 for calling a global function with example usage: has_arg() and returns: unknown