class_docstr: Tests for TensorBuffer in eager mode.
code: def test_resize(self):
      size, shape = 2, [2, 3]
  
      my_buffer = tensor_buffer.TensorBuffer(
          size, shape, name="my_buffer"
      )
  
      # Append three buffers. Third one should succeed after resizing.
      value1 = [[1, 2, 3], [4, 5, 6]]
      my_buffer.append(value1)
      self.assertAllEqual(my_buffer.values.numpy(), [value1])
      self.assertAllEqual(my_buffer.current_size.numpy(), 1)
      self.assertAllEqual(my_buffer.capacity.numpy(), 2)
  
      value2 = [[4, 5, 6], [7, 8, 9]]
      my_buffer.append(value2)
      self.assertAllEqual(my_buffer.values.numpy(), [value1, value2])
      self.assertAllEqual(my_buffer.current_size.numpy(), 2)
      self.assertAllEqual(my_buffer.capacity.numpy(), 2)
  
      value3 = [[7, 8, 9], [10, 11, 12]]
      my_buffer.append(value3)
      self.assertAllEqual(
          my_buffer.values.numpy(), [value1, value2, value3]
      )
      self.assertAllEqual(my_buffer.current_size.numpy(), 3)
      # Capacity should have doubled.
      self.assertAllEqual(my_buffer.capacity.numpy(), 4)
  
imports: import tensorflow
  from tensorflow_privacy.privacy.analysis import tensor_buffer
label_desc: Use image node_id 4 for calling the TensorBufferTest obj's underlying member method code with example usage: obj.test_resize() without return types