code: def collect_platform(info_add):
      import platform
  
      arch = platform.architecture()
      arch = " ".join(filter(bool, arch))
      info_add("platform.architecture", arch)
  
      info_add(
          "platform.python_implementation",
          platform.python_implementation(),
      )
      info_add("platform.platform", platform.platform(aliased=True))
  
      libc_ver = ("%s %s" % platform.libc_ver()).strip()
      if libc_ver:
          info_add("platform.libc_ver", libc_ver)
  
      try:
          os_release = platform.freedesktop_os_release()
      except OSError:
          pass
      else:
          for key in (
              "ID",
              "NAME",
              "PRETTY_NAME" "VARIANT",
              "VARIANT_ID",
              "VERSION",
              "VERSION_CODENAME",
              "VERSION_ID",
          ):
              if key not in os_release:
                  continue
              info_add(
                  f"platform.freedesktop_os_release[{key}]",
                  os_release[key],
              )
  
imports: import errno
  import re
  import sys
  import traceback
  import warnings
label_desc: Use image node_id 6 for calling a global function with example usage: collect_platform(info_add) without return types