code: def test_build_incorrect_output_shapes(self):
      _, mid_level_api, _ = self._create_strategy_and_mid_level("sgd")
      # Output shapes is set in the mid_level_api, but build with incorrect output
      # shapes.
      mid_level_api._output_shapes = [
          TensorShape((2, 4)) for _ in range(3)
      ]
  
      with self.assertRaisesRegex(
          ValueError, "Inconsistent shape founded for input feature"
      ):
          mid_level_api.build(
              [TensorShape([1, 1, 1]) for _ in range(3)]
          )
  
file_path: tensorflow/tensorflow/python/tpu/tests/tpu_embedding_v2_hd_invalid_input_test.py
imports: from tensorflow.python.compat import v2_compat
  from tensorflow.python.distribute import distribute_lib
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework.tensor_shape import TensorShape
  from tensorflow.python.platform import test
  from tensorflow.python.tpu.tests import tpu_embedding_base_test
label_desc: Use image node_id 1 for calling the TPUEmbeddingTest obj's underlying member method code with example usage: obj.test_build_incorrect_output_shapes() without return types