code: def test_threading_abort():
      # Ensures that aborting PyThreadState_New raises the correct exception
      import _thread
  
      class ThreadNewAbortError(Exception):
          pass
  
      def hook(event, args):
          if event == "cpython.PyThreadState_New":
              raise ThreadNewAbortError()
  
      sys.addaudithook(hook)
  
      try:
          _thread.start_new_thread(lambda: None, ())
      except ThreadNewAbortError:
          # Other exceptions are raised and the test will fail
          pass
  
imports: import contextlib
  import os
  import sys
label_desc: Use image node_id 25 for calling a global function with example usage: test_threading_abort() without return types