code: def setup_signal_handling():
      """Setup custom signal handling.
  
      Will run all functions registered with ``register_handler`` in order from
      the most recently registered one.
      """
      global _handling_setup
      if not _handling_setup:
          for sig in _signals_to_handle:
              signal.signal(sig, _terminate_handler)
          _handling_setup = True
  
file_path: ray/release/ray_release/signal_handling.py
imports: import signal
  import sys
  from typing import Any, Callable, List, Union
  from ray_release.logger import logger
label_desc: Use image node_id 4 for calling a global function with example usage: setup_signal_handling() without return types