code: def collect_pwd(info_add):
      try:
          import pwd
      except ImportError:
          return
      import os
  
      uid = os.getuid()
      try:
          entry = pwd.getpwuid(uid)
      except KeyError:
          entry = None
  
      info_add(
          "pwd.getpwuid(%s)" % uid,
          entry if entry is not None else "<KeyError>",
      )
  
      if entry is None:
          # there is nothing interesting to read if the current user identifier
          # is not the password database
          return
  
      if hasattr(os, "getgrouplist"):
          groups = os.getgrouplist(entry.pw_name, entry.pw_gid)
          groups = ", ".join(map(str, groups))
          info_add("os.getgrouplist", groups)
  
imports: import errno
  import re
  import sys
  import traceback
  import warnings
label_desc: Use image node_id 11 for calling a global function with example usage: collect_pwd(info_add) without return types