code: def get_gpu_count():
      """Retrieves total number of GPU's available in the system.
  
      Returns:
        Integer that is the total # of GPU's found.
      """
      key = "gpu_count_no_sudo"
      out, err = run_shell_cmd(cmds_all[PLATFORM][key])
      if err and FLAGS.debug:
          print("Error in detecting GPU count:\n %s" % str(err))
  
      return out.strip(b"\n")
  
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 8 for calling a global function with example usage: get_gpu_count() and returns: out