code: def is_cuda_available():
      # TODO: Does MXNet have a convenient function to test GPU availability/compilation?
      try:
          a = nd.array([1, 2, 3], ctx=mx.gpu())
          return True
      except mx.MXNetError:
          return False
  
imports: from __future__ import absolute_import
  import mxnet
  import mxnet.ndarray
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: is_cuda_available() and returns: True, False