code: def test_rolls_over(self):
      d = tf_metrics.TFDeque(3, tf.int32)
      self.evaluate(tf.compat.v1.global_variables_initializer())
  
      d.add(1)
      self.evaluate_last_func_if_graph_mode()
      d.add(2)
      self.evaluate_last_func_if_graph_mode()
      d.add(3)
      self.evaluate_last_func_if_graph_mode()
      self.assertAllEqual([1, 2, 3], self.evaluate(d.data))
  
      d.add(4)
      self.evaluate_last_func_if_graph_mode()
      self.assertAllEqual([4, 2, 3], self.evaluate(d.data))
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import tensorflow
  from tf_agents.metrics import tf_metrics
  from tf_agents.specs import tensor_spec
  from tf_agents.trajectories import trajectory
  from tensorflow.python.eager import context
label_desc: Use image node_id 3 for calling the TFDequeTest obj's underlying member method code with example usage: obj.test_rolls_over() without return types