class_docstr: An Action Recording Wrapper that records for (sub-)step the respective MazeAction or agent action taken.
  
  :param env: Environment to wrap.
  :param record_maze_actions: If True maze action objects are recorded.
  :param record_actions: If True agent actions are recorded.
  :param output_dir: Path where to store the action records.
class_docstr_tok: ["An","Action","Recording","Wrapper","that","records","for","(","sub-",")","step","the","respective","MazeAction","or","agent","action","taken",".",":","param","env",":","Environment","to","wrap",".",":","param","record_maze_actions",":","If","True","maze","action","objects","are","recorded",".",":","param","record_actions",":","If","True","agent","actions","are","recorded",".",":","param","output_dir",":","Path","where","to","store","the","action","records","."]
code: def __init__(
      self,
      env: MazeEnv,
      record_maze_actions: bool,
      record_actions: bool,
      output_dir: str = "action_records",
  ):
      super().__init__(env)
      self.record_maze_actions = record_maze_actions
      self.record_actions = record_actions
  
      self.action_record = None
      self._episode_id = None
      self._current_seed = None
      self._cum_reward = None
  
      self.output_dir = Path(output_dir)
      self.output_dir.mkdir(parents=True, exist_ok=True)
  
file_path: maze/maze/core/wrappers/action_recording_wrapper.py
imports: from typing import Dict, Any, Tuple, Optional, Union
  from pathlib import Path
  from maze.core.annotations import override
  from maze.core.env.core_env import CoreEnv
  from maze.core.env.maze_action import MazeActionType
  from maze.core.env.maze_env import MazeEnv
  from maze.core.env.maze_state import MazeStateType
  from maze.core.trajectory_recording.records.action_record import ActionRecord
  from maze.core.wrappers.wrapper import ObservationWrapper, Wrapper
label_desc: Use image node_id 1 to create a new ActionRecordingWrapper object from inherited base classes: Wrapper with example: obj = ActionRecordingWrapper(env, record_maze_actions, record_actions, output_dir)