docstr: Test that we error out for unranked dynamic shape.
docstr_tok: ["Test","that","we","error","out","for","unranked","dynamic","shape","."]
code: def test_unranked_output_error(self):
      """Test that we error out for unranked dynamic shape."""
  
      @def_function.function(jit_compile=True)
      def compiled_f():
          return (
              test_ops_for_light_outside_compilation.dynamic_unranked()
          )
  
      with context.device("/gpu:0"):
          with self.assertRaisesRegex(
              ValueError, "Output 0 has unknown rank"
          ):
              compiled_f.experimental_get_compiler_ir()()
  
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 5 for calling the LightOutsideCompilationTest obj's underlying member method code with example usage: obj.test_unranked_output_error() and returns: test_ops_for_light_outside_compilation