code: def test_flood(self):
      buf = prioritized.PrioritizedBuffer(
          capacity=self.capacity,
          wait_priority_after_sampling=self.wait_priority_after_sampling,
      )
      for _ in range(100):
          for x in range(self.capacity + 1):
              if self.wait_priority_after_sampling:
                  buf.append(x)
              else:
                  buf.append(x, priority=self.initial_priority)
          for _ in range(5):
              n = random.randrange(1, self.capacity + 1)
              buf.sample(n, uniform_ratio=self.uniform_ratio)
              if self.wait_priority_after_sampling:
                  buf.set_last_priority([1.0] * n)
  
file_path: chainerrl/tests/misc_tests/test_prioritized.py
imports: import unittest
  import numpy
  import random
  from chainer import testing
  from chainer.testing import condition
  from chainerrl.misc import prioritized
label_desc: Use image node_id 1 for calling the TestPrioritizedBufferFlooding obj's underlying member method code with example usage: obj.test_flood() without return types