code: def test_seed(random_fraction):
      def get_actions(seed):
          env = ActionRecordingEnv()
          env = pfrl.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)
  
      assert a_seed0 == b_seed0
      assert a_seed1 == b_seed1
      if random_fraction > 0:
          assert a_seed0 != a_seed1
  
file_path: pfrl/tests/wrappers_tests/test_randomize_action.py
imports: import gym
  import gym.spaces
  import numpy
  import pytest
  import pfrl
label_desc: Use image node_id 2 for calling a global function with example usage: test_seed(random_fraction) and returns: env