code: def test_crash_during_shutdown_captured(pytester: Pytester) -> None:
      """
      Re-enable faulthandler if pytest encountered it enabled during configure.
      We should be able to then see crashes during interpreter shutdown.
      """
      setup_crashing_test(pytester)
      args = (sys.executable, "-Xfaulthandler", "-mpytest")
      result = pytester.run(*args)
      result.stderr.fnmatch_lines(["*Fatal Python error*"])
      assert result.ret != 0
  
file_path: pytest/testing/test_faulthandler.py
imports: import io
  import sys
  import pytest
  from _pytest.pytester import Pytester
label_desc: Use image node_id 3 for calling a global function with example usage: test_crash_during_shutdown_captured(pytester) without return types