code: def is_gpu_available():
      tf = _minimal_package_import_check("tensorflow")
  
      tf_minor_version = int(tf.version.VERSION.split(".")[1])
  
      if tf_minor_version == 0:
          gpu_names = tf.config.experimental.list_physical_devices(
              "GPU"
          )
      else:
          gpu_names = tf.config.list_physical_devices("GPU")
  
      return len(gpu_names) > 0
  
file_path: turicreate/src/python/turicreate/toolkits/_tf_utils.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import numpy
  from turicreate._deps.minimal_package import _minimal_package_import_check
label_desc: Use image node_id 2 for calling a global function with example usage: is_gpu_available() and returns: unknown