code: def gather_platform_info():
      """Gather platform info."""
      platform_info = test_log_pb2.PlatformInfo()
      (
          platform_info.bits,
          platform_info.linkage,
      ) = platform.architecture()
      platform_info.machine = platform.machine()
      platform_info.release = platform.release()
      platform_info.system = platform.system()
      platform_info.version = platform.version()
      return platform_info
  
file_path: tensorflow-upstream/tensorflow/tools/test/system_info_lib.py
imports: import glob
  import multiprocessing
  import platform
  import re
  import socket
  import cpuinfo
  import psutil
  from tensorflow.core.util import test_log_pb2
  from tensorflow.python.client import device_lib
  from tensorflow.python.framework import errors
  from tensorflow.python.platform import gfile
  from tensorflow.tools.test import gpu_info_lib
label_desc: Use image node_id 6 for calling a global function with example usage: gather_platform_info() and returns: platform_info