code: def test_http_client():
      import http.client
  
      def hook(event, args):
          if event.startswith("http.client."):
              print(event, *args[1:])
  
      sys.addaudithook(hook)
  
      conn = http.client.HTTPConnection("www.python.org")
      try:
          conn.request("GET", "/")
      except OSError:
          print("http.client.send", "[cannot send]")
      finally:
          conn.close()
  
imports: import contextlib
  import os
  import sys
label_desc: Use image node_id 20 for calling a global function with example usage: test_http_client() without return types