class_docstr: Tests for TensorBuffer in eager mode.
code: def test_fail_on_inconsistent_shape(self):
      size, shape = 1, [2, 3]
  
      my_buffer = tensor_buffer.TensorBuffer(
          size, shape, name="my_buffer"
      )
  
      with self.assertRaisesRegex(
          tf.errors.InvalidArgumentError,
          "Appending value of inconsistent shape.",
      ):
          my_buffer.append(tf.ones(shape=[3, 4], dtype=tf.int32))
  
imports: import tensorflow
  from tensorflow_privacy.privacy.analysis import tensor_buffer
label_desc: Use image node_id 3 for calling the TensorBufferTest obj's underlying member method code with example usage: obj.test_fail_on_inconsistent_shape() without return types