docstr: Test that we correctly check for shape mismatches at runtime.
code: def testUniqueDifferentSizes(self):
      """Test that we correctly check for shape mismatches at runtime."""
      if "tpu" in self.device.lower():
          self.skipTest("We do not check shapes on TPU")
  
      with ops.device(f"device:{self.device}:0"):
  
          @def_function.function(jit_compile=True)
          def f(x, y):
              return array_ops.unique(x).y + array_ops.unique(y).y
  
          f(
              constant_op.constant([3.1, 3.2]),
              constant_op.constant([3.3, 3.2]),
          )
  
          with self.assertRaisesRegex(
              errors.InternalError, "different size"
          ):
              f(
                  constant_op.constant([3.1, 3.2]),
                  constant_op.constant([3.1, 3.2, 3.3]),
              )
  
file_path: tensorflow-upstream/tensorflow/compiler/tests/runtime_shape_check_test.py
imports: from tensorflow.compiler.tests import xla_test
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  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.platform import test
label_desc: Use image node_id 1 for calling the RuntimeShapeCheckTest obj's underlying member method code with example usage: obj.testUniqueDifferentSizes() and returns: unknown