code: def pytest_configure(config: Config) -> None:
      import faulthandler
  
      # at teardown we want to restore the original faulthandler fileno
      # but faulthandler has no api to return the original fileno
      # so here we stash the stderr fileno to be used at teardown
      # sys.stderr and sys.__stderr__ may be closed or patched during the session
      # so we can't rely on their values being good at that point (#11572).
      stderr_fileno = get_stderr_fileno()
      if faulthandler.is_enabled():
          config.stash[
              fault_handler_original_stderr_fd_key
          ] = stderr_fileno
      config.stash[fault_handler_stderr_fd_key] = os.dup(stderr_fileno)
      faulthandler.enable(
          file=config.stash[fault_handler_stderr_fd_key]
      )
  
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 2 for calling a global function with example usage: pytest_configure(config) without return types