code: def sigquit_handler(sig, frame):
      """
      Help debug deadlocks by printing stacktraces when this gets a SIGQUIT.
  
      e.g. kill -s QUIT <PID> or CTRL+
      """
      print(
          f"Dumping stack traces for all threads in PID {os.getpid()}"
      )
      id_to_name = {th.ident: th.name for th in threading.enumerate()}
      code = []
      for thread_id, stack in sys._current_frames().items():
          code.append(
              f"\n# Thread: {id_to_name.get(thread_id, '')}({thread_id})"
          )
          for (
              filename,
              line_number,
              name,
              line,
          ) in traceback.extract_stack(stack):
              code.append(
                  f'File: "{filename}", line {line_number}, in {name}'
              )
              if line:
                  code.append(f"  {line.strip()}")
      print("\n".join(code))
  
imports: from __future__ import annotations
  import functools
  import logging
  import os
  import socket
  import sys
  import threading
  import traceback
  import warnings
  from argparse import Namespace
  from datetime import datetime
  from pathlib import Path
  from typing import TYPE_CHECKING, Callable, TypeVar, cast
  import re2
  from sqlalchemy import select
  from airflow import settings
  from airflow.exceptions import AirflowException, RemovedInAirflow3Warning
  from airflow.utils import cli_action_loggers
  from airflow.utils.log.non_caching_file_handler import NonCachingFileHandler
  from airflow.utils.platform import getuser, is_terminal_support_colors
  from airflow.utils.session import NEW_SESSION, provide_session
label_desc: Use image node_id 13 for calling a global function with example usage: sigquit_handler(sig, frame) without return types