code: def test_mean_full(self):
      d = tf_metrics.TFDeque(3, tf.int32, shape=(2,))
      self.evaluate(tf.compat.v1.global_variables_initializer())
  
      d.add([1, 1])
      self.evaluate_last_func_if_graph_mode()
      d.add([2, 2])
      self.evaluate_last_func_if_graph_mode()
      d.add([3, 3])
      self.evaluate_last_func_if_graph_mode()
      self.assertAllEqual([2, 2], self.evaluate(d.mean()))
      self.assertEqual(tf.int32, d.mean().dtype)
  
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 5 for calling the TFShapedDequeTest obj's underlying member method code with example usage: obj.test_mean_full() without return types