code: def test_uniform_table_max_sample(self):
      table_name = "test_uniform_table"
      table = reverb.Table(
          table_name,
          sampler=reverb.selectors.Uniform(),
          remover=reverb.selectors.Fifo(),
          max_size=3,
          max_times_sampled=10,
          rate_limiter=reverb.rate_limiters.MinSize(1),
      )
      reverb_server = reverb.Server([table])
      data_spec = tensor_spec.TensorSpec((), dtype=tf.int64)
      replay = reverb_replay_buffer.ReverbReplayBuffer(
          data_spec,
          table_name,
          local_server=reverb_server,
          sequence_length=1,
          dataset_buffer_size=1,
      )
  
      with replay.py_client.trajectory_writer(1) as writer:
          for i in range(3):
              writer.append(i)
              writer.create_item(
                  table_name, trajectory=writer.history[-1:], priority=1
              )
  
      dataset = replay.as_dataset(
          sample_batch_size=3, num_parallel_calls=3
      )
  
      self.assertTrue(table.can_sample(3))
      iterator = iter(dataset)
      counts = [0] * 3
      for i in range(10):
          item_0 = next(iterator)[
              0
          ].numpy()  # This is a matrix shaped 1x3.
          for item in item_0:
              counts[int(item)] += 1
      self.assertFalse(table.can_sample(3))
  
      # Same number of counts due to limit on max_times_sampled
      self.assertEqual(counts[0], 10)
      self.assertEqual(counts[1], 10)
      self.assertEqual(counts[2], 10)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import contextlib
  import functools
  import time
  from absl.testing import parameterized
  import mock
  import reverb
  from six.moves import range
  import tensorflow
  from tf_agents.drivers import py_driver
  from tf_agents.environments import parallel_py_environment
  from tf_agents.environments import test_envs
  from tf_agents.policies import random_py_policy
  from tf_agents.replay_buffers import reverb_replay_buffer
  from tf_agents.replay_buffers import reverb_utils
  from tf_agents.specs import tensor_spec
  from tf_agents.system import system_multiprocessing
  from tf_agents.trajectories import time_step
  from tf_agents.utils import test_utils
label_desc: Use image node_id 3 for calling the ReverbTableTests obj's underlying member method code with example usage: obj.test_uniform_table_max_sample() without return types