code: def get_platform():
      """Retrieves platform information.
  
      Currently the script only support linux. If other platoforms such as Windows
      or MacOS is detected, it throws an error and terminates.
  
      Returns:
        String that is platform type.
          e.g. 'linux'
      """
      global PLATFORM
      cmd = "uname"
      out, err = run_shell_cmd(cmd)
      platform_detected = out.strip().lower()
      if platform_detected != "linux":
          if err and FLAGS.debug:
              print("Error in detecting platform:\n %s" % str(err))
  
          print(
              "Error: Detected unsupported operating system.\nStopping..."
          )
          sys.exit(1)
      else:
          PLATFORM = platform_detected
  
      return PLATFORM
  
imports: import collections
  import json
  import re
  import subprocess
  import sys
  from absl import app
  from absl import flags
  from tensorflow.tools.tensorflow_builder.config_detector.data import cuda_compute_capability
label_desc: Use image node_id 2 for calling a global function with example usage: get_platform() and returns: PLATFORM