code: def test_records_multiple_episodes():
      env = build_dummy_maze_env()
      env = ActionRecordingWrapper.wrap(
          env,
          record_maze_actions=True,
          record_actions=True,
          output_dir="action_records",
      )
  
      env.seed(1234)
      env.reset()
      for _ in range(5):
          for _ in range(10):
              action = env.action_space.sample()
              env.step(action)
          env.seed(1234)
          env.reset()
  
      dumped_files = os.listdir("action_records")
      assert len(dumped_files) == 5
  
      for file_path in dumped_files:
          with open("action_records/" + file_path, "rb") as in_f:
              action_record = pickle.load(in_f)
  
          assert isinstance(action_record, ActionRecord)
          assert len(action_record) == 10
  
file_path: maze/maze/test/core/wrappers/test_action_recording_wrapper.py
imports: import os
  import pickle
  import numpy
  import pytest
  from maze.core.env.structured_env import ActorID
  from maze.core.trajectory_recording.records.action_record import ActionRecord
  from maze.core.wrappers.action_recording_wrapper import ActionRecordingWrapper
  from maze.test.shared_test_utils.helper_functions import build_dummy_maze_env, build_dummy_structured_env
label_desc: Use image node_id 3 for calling a global function with example usage: test_records_multiple_episodes() without return types