class_docstr: A replay action record policy that executes in each (sub-)step the action stored in the provided action record.
  
  :param action_record_path: Action record or path to action record dump.
  :param with_agent_actions: If True agent actions are returned; else MazeActions.
class_docstr_tok: ["A","replay","action","record","policy","that","executes","in","each","(","sub-",")","step","the","action","stored","in","the","provided","action","record",".",":","param","action_record_path",":","Action","record","or","path","to","action","record","dump",".",":","param","with_agent_actions",":","If","True","agent","actions","are","returned",";","else","MazeActions","."]
docstr: Load action record from file.
  
  :param action_record_path: Action record or path to action record dump.
docstr_tok: ["Load","action","record","from","file",".",":","param","action_record_path",":","Action","record","or","path","to","action","record","dump","."]
code: def load_action_record(
      self, action_record_path: Union[ActionRecord, str]
  ) -> None:
      """Load action record from file.
  
      :param action_record_path: Action record or path to action record dump.
      """
      if isinstance(action_record_path, ActionRecord):
          self.action_record = action_record_path
      else:
          assert os.path.exists(action_record_path)
          self.action_record = ActionRecord.load(action_record_path)
  
imports: import os.path
  from typing import Tuple
  from typing import Union, Optional, Sequence
  from maze.core.agent.policy import Policy
  from maze.core.annotations import override
  from maze.core.env.action_conversion import ActionType
  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.env.observation_conversion import ObservationType
  from maze.core.env.structured_env import ActorID
  from maze.core.trajectory_recording.records.action_record import ActionRecord
label_desc: Use image node_id 2 for calling the ReplayRecordedActionsPolicy obj's underlying member method code with example usage: obj.load_action_record(action_record_path) without return types