code: def test_unraisablehook():
      from _testcapi import err_formatunraisable
  
      def unraisablehook(hookargs):
          pass
  
      def hook(event, args):
          if event == "sys.unraisablehook":
              if args[0] != unraisablehook:
                  raise ValueError(
                      f"Expected {args[0]} == {unraisablehook}"
                  )
              print(event, repr(args[1].exc_value), args[1].err_msg)
  
      sys.addaudithook(hook)
      sys.unraisablehook = unraisablehook
      err_formatunraisable(
          RuntimeError("nonfatal-error"),
          "Exception ignored for audit hook test",
      )
  
imports: import contextlib
  import os
  import sys
label_desc: Use image node_id 16 for calling a global function with example usage: test_unraisablehook() without return types