code: def test_action_record_rollout():
      teacher_policy = HeuristicLunarLanderPolicy()
  
      env = GymMazeEnv("LunarLander-v2")
      env = ActionRecordingWrapper.wrap(
          env,
          record_maze_actions=False,
          record_actions=True,
          output_dir="action_records",
      )
  
      env.seed(1234)
      obs = env.reset()
      done = False
      while not done:
          action = teacher_policy.compute_action(obs)
          obs, rew, done, info = env.step(action)
  
          if done:
              env.seed(1234)
              env.reset()
  
      env = GymMazeEnv("LunarLander-v2")
  
      runner = ActionRecordRolloutRunner(
          max_episode_steps=10000,
          deterministic=False,
          action_record_path="action_records",
          normalization_samples=10,
          n_processes=2,
          verbose=False,
      )
  
      runner.run_with(
          env=env,
          wrappers={
              MazeEnvMonitoringWrapper: {
                  "observation_logging": True,
                  "action_logging": False,
                  "reward_logging": False,
              }
          },
          agent=ReplayRecordedActionsPolicy(
              action_record_path=None, with_agent_actions=True
          ),
      )
  
file_path: maze/maze/test/core/rollout/test_rollout.py
imports: from typing import Dict
  import pytest
  from maze.core.agent.dummy_cartpole_policy import DummyCartPolePolicy
  from maze.core.agent.heuristic_lunar_lander_policy import HeuristicLunarLanderPolicy
  from maze.core.agent.replay_recorded_actions_policy import ReplayRecordedActionsPolicy
  from maze.core.rollout.action_record_rollout_runner import ActionRecordRolloutRunner
  from maze.core.rollout.parallel_rollout_runner import ParallelRolloutRunner
  from maze.core.rollout.sequential_rollout_runner import SequentialRolloutRunner
  from maze.core.utils.seeding import MazeSeeding
  from maze.core.wrappers.action_recording_wrapper import ActionRecordingWrapper
  from maze.core.wrappers.maze_gym_env_wrapper import GymMazeEnv
  from maze.core.wrappers.monitoring_wrapper import MazeEnvMonitoringWrapper
  from maze.test.shared_test_utils.run_maze_utils import run_maze_job
label_desc: Use image node_id 4 for calling a global function with example usage: test_action_record_rollout() without return types