code: def collect_support_socket_helper(info_add):
      try:
          from test.support import socket_helper
      except ImportError:
          return
  
      attributes = (
          "IPV6_ENABLED",
          "has_gethostname",
      )
      copy_attributes(
          info_add,
          socket_helper,
          "support_socket_helper.%s",
          attributes,
      )
  
      for name in ("tcp_blackhole",):
          func = getattr(socket_helper, name)
          info_add(f"support_socket_helper.{name}", func())
  
imports: import errno
  import re
  import sys
  import traceback
  import warnings
label_desc: Use image node_id 31 for calling a global function with example usage: collect_support_socket_helper(info_add) without return types