docstr: Test operations with must-be-constant input.
docstr_tok: ["Test","operations","with","must-be-constant","input","."]
code: def test_must_be_constant_tf_op(self):
      """Test operations with must-be-constant input."""
  
      @def_function.function(jit_compile=True)
      def compiled_f(x, y):
          return test_ops_for_light_outside_compilation.test_tf_must_be_constant(
              x, constant_to_add=y
          )
  
      with context.device("/gpu:0"):
          z = random_ops.random_normal([10])
          hlo = compiled_f.experimental_get_compiler_ir(z, 5)(
              "hlo_no_metadata"
          )
  
          self.assertFilecheck(
              hlo,
              r"""
            CHECK: custom-call(f32[10]{0} [[v:.*]]), custom_call_target="GenericTfCallbackGPU"
            CHECK: TestTfMustBeConstant
            """,
          )
  
          expected_output = [j + 5 for j in z]
          self.assertAllClose(compiled_f(z, 5), expected_output)
  
imports: from tensorflow.compiler.mlir.python.mlir_wrapper import filecheck_wrapper
  from tensorflow.compiler.tf2xla import test_ops_for_light_outside_compilation
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.platform import googletest
  from tensorflow.python.platform import test
label_desc: Use image node_id 10 for calling the LightOutsideCompilationTest obj's underlying member method code with example usage: obj.test_must_be_constant_tf_op() and returns: test_ops_for_light_outside_compilation