code: def testJITXlaScope(self):
      with self.session(graph=ops.Graph()):
          with jit.experimental_jit_scope(True):
              # XlaScope 0
              a1 = constant_op.constant(1)
          with jit.experimental_jit_scope(True):
              # XlaScope 1
              a2 = constant_op.constant(1)
              with jit.experimental_jit_scope(True):
                  # XlaScope still 1, depth 1
                  a3 = constant_op.constant(1)
                  with jit.experimental_jit_scope(True):
                      # XlaScope still 1, depth 2
                      a4 = constant_op.constant(1)
                  # XlaScope still 1, depth 1
                  a5 = constant_op.constant(1)
          with jit.experimental_jit_scope(True):
              # XlaScope now 2, depth 0
              a6 = constant_op.constant(1)
  
      self.assertEqual(b"jit_scope_0", a1.op.get_attr("_XlaScope"))
      self.assertEqual(b"jit_scope_1", a2.op.get_attr("_XlaScope"))
      self.assertEqual(b"jit_scope_1", a3.op.get_attr("_XlaScope"))
      self.assertEqual(b"jit_scope_1", a4.op.get_attr("_XlaScope"))
      self.assertEqual(b"jit_scope_1", a5.op.get_attr("_XlaScope"))
      self.assertEqual(b"jit_scope_2", a6.op.get_attr("_XlaScope"))
  
imports: from absl.testing import parameterized
  from tensorflow.python.compiler.xla import jit
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import function
  from tensorflow.python.framework import op_def_registry
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import gradients
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the JITTest obj's underlying member method code with example usage: obj.testJITXlaScope() without return types