code: def test_read_write(self):
      t = prioritized.SumTree()
      d = dict()
      for _ in range(200):
          k = random.randint(-10, 10)
          v = random.uniform(1e-6, 1e6)
          t[k] = v
          d[k] = v
  
          k = random.choice(list(d.keys()))
          self.assertEqual(t[k], d[k])
  
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 TestSumTree obj's underlying member method code with example usage: obj.test_read_write() without return types