code: def testUnsupportedOps(self):
      with ops.Graph().as_default() as g:
  
          def fn(x):
              return string_ops.string_length(
                  string_ops.string_format("{}", x)
              )
  
          xla_func = def_function.function(fn, jit_compile=True)
          inputs = array_ops.placeholder(dtypes.float32, [5])
          x = xla_func(inputs)
          with self.assertRaisesRegex(
              errors.InvalidArgumentError,
              "Detected unsupported operations",
          ):
              with session.Session(graph=g) as sess:
                  sess.run(x, feed_dict={inputs: [1, 2, 2, 3, 3]})
  
file_path: tensorflow/tensorflow/python/compiler/xla/tests/jit_compile_test.py
imports: from tensorflow.python.client import session
  from tensorflow.python.eager import backprop
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import string_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the JitCompileTest obj's underlying member method code with example usage: obj.testUnsupportedOps() and returns: string_ops