code: def is_compile_on_demand():
      return (
          "TF_XLA_FLAGS" in os.environ
          and "tf_xla_compile_on_demand" in os.environ["TF_XLA_FLAGS"]
      )
  
imports: import os
  import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.compiler.tf2xla.python import xla
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import function
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import map_fn
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import while_loop
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling a global function with example usage: is_compile_on_demand() and returns: unknown