code: def on_pre_execution(**kwargs):
      """Call callbacks before execution.
  
      Note that any exception from callback will be logged but won't be propagated.
  
      :param kwargs:
      :return: None
      """
      logging.debug("Calling callbacks: %s", __pre_exec_callbacks)
      for callback in __pre_exec_callbacks:
          try:
              callback(**kwargs)
          except Exception:
              logging.exception(
                  "Failed on pre-execution callback using %s", callback
              )
  
file_path: airflow/airflow/utils/cli_action_loggers.py
imports: from __future__ import annotations
  import json
  import logging
  from typing import Callable
label_desc: Use image node_id 3 for calling a global function with example usage: on_pre_execution() without return types