code: def show_stack():
      r"""Show stack trace on SIGQUIT (Ctrl-\) or SIGINFO (Ctrl-T on macOS)."""
      import signal
      import sys
  
      if sys.platform != "win32":
          signal.signal(signal.SIGQUIT, _sigshow)
  
      try:
          # only available on macOS
          signal.signal(signal.SIGINFO, _sigshow)  # type: ignore[attr-defined]
      except AttributeError:
          pass
      yield
  
file_path: dvc/dvc/_debug.py
imports: from contextlib import ExitStack, contextmanager
  from datetime import datetime
  from typing import TYPE_CHECKING, Callable, Optional, Union
label_desc: Use image node_id 7 for calling a global function with example usage: show_stack() without return types