code: def setup_crashing_test(pytester: Pytester) -> None:
      pytester.makepyfile(
          """
          import faulthandler
          import atexit
          def test_ok():
              atexit.register(faulthandler._sigabrt)
          """
      )
  
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 2 for calling a global function with example usage: setup_crashing_test(pytester) without return types