code: def test_seed(self):
      def get_actions(seed):
          random_fraction = self.random_fraction
          env = ActionRecordingEnv()
          env = chainerrl.wrappers.RandomizeAction(
              env, random_fraction=random_fraction
          )
          env.seed(seed)
          for _ in range(1000):
              # Always send action 0
              env.step(0)
          return env.env.past_actions
  
      a_seed0 = get_actions(0)
      a_seed1 = get_actions(1)
      b_seed0 = get_actions(0)
      b_seed1 = get_actions(1)
  
      self.assertEqual(a_seed0, b_seed0)
      self.assertEqual(a_seed1, b_seed1)
      if self.random_fraction > 0:
          self.assertNotEqual(a_seed0, a_seed1)
  
file_path: chainerrl/tests/wrappers_tests/test_randomize_action.py
imports: import unittest
  from chainer import testing
  from chainer.testing import condition
  import gym
  import gym.spaces
  import chainerrl
label_desc: Use image node_id 2 for calling the TestRandomizeAction obj's underlying member method code with example usage: obj.test_seed() and returns: env