code: def pytest_runtest_protocol(
      item: Item,
  ) -> Generator[None, None, None]:
      timeout = get_timeout_config_value(item.config)
      if timeout > 0:
          import faulthandler
  
          stderr = item.config.stash[fault_handler_stderr_fd_key]
          faulthandler.dump_traceback_later(timeout, file=stderr)
          try:
              yield
          finally:
              faulthandler.cancel_dump_traceback_later()
      else:
          yield
  
file_path: catboost/contrib/python/pytest/py3/_pytest/faulthandler.py
imports: import os
  import sys
  from typing import Generator
  import pytest
  from _pytest.config import Config
  from _pytest.config.argparsing import Parser
  from _pytest.nodes import Item
  from _pytest.stash import StashKey
label_desc: Use image node_id 6 for calling a global function with example usage: pytest_runtest_protocol(item) without return types