code: def testIsXLAAvailable(self):
      available = False
      try:
          self.evaluate(
              tf.xla.experimental.compile(lambda: tf.constant(0.0))
          )
          available = True
      except:  # pylint: disable=bare-except
          pass
      self.assertEqual(available, xla.is_xla_available())
  
file_path: agents/tf_agents/utils/xla_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
  from tf_agents.utils import xla
label_desc: Use image node_id 2 for calling the XLATest obj's underlying member method code with example usage: obj.testIsXLAAvailable() without return types