code: def test_winreg():
      from winreg import OpenKey, EnumKey, CloseKey, HKEY_LOCAL_MACHINE
  
      def hook(event, args):
          if not event.startswith("winreg."):
              return
          print(event, *args)
  
      sys.addaudithook(hook)
  
      k = OpenKey(HKEY_LOCAL_MACHINE, "Software")
      EnumKey(k, 0)
      try:
          EnumKey(k, 10000)
      except OSError:
          pass
      else:
          raise RuntimeError("Expected EnumKey(HKLM, 10000) to fail")
  
      kv = k.Detach()
      CloseKey(kv)
  
imports: import contextlib
  import os
  import sys
label_desc: Use image node_id 17 for calling a global function with example usage: test_winreg() without return types