code: def test_handles_multi_step_scenarios():
      env = build_dummy_structured_env()
      env = ActionRecordingWrapper.wrap(
          env,
          record_maze_actions=False,
          record_actions=True,
          output_dir="action_records",
      )
  
      env.seed(1234)
      env.reset()
      for _ in range(6):
          action = env.action_space.sample()
          env.step(action)
  
      assert len(env.action_record) == 3
      for i in range(3):
          assert ActorID(0, 0) in env.action_record.agent_actions[i]
          assert ActorID(1, 0) in env.action_record.agent_actions[i]
  
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 4 for calling a global function with example usage: test_handles_multi_step_scenarios() without return types