class_docstr: Converts agent actions to actual environment MazeActions.
  
  :param max_pieces_in_inventory: Size of the inventory
docstr: Converts agent dictionary action to environment MazeAction object.
docstr_tok: ["Converts","agent","dictionary","action","to","environment","MazeAction","object","."]
code: def space_to_maze(
      self, action: Dict[str, int], maze_state: Cutting2DMazeState
  ) -> Cutting2DMazeAction:
      """Converts agent dictionary action to environment MazeAction object."""
      return Cutting2DMazeAction(
          piece_id=action["piece_idx"],
          rotate=bool(action["cut_rotation"]),
          reverse_cutting_order=bool(action["cut_order"]),
      )
  
file_path: maze/tutorials/tutorial_maze_env/part04_events/space_interfaces/dict_action_conversion.py
imports: from typing import Dict
  from gym import spaces
  from maze.core.env.action_conversion import ActionConversionInterface
  from ..env.maze_action import Cutting2DMazeAction
  from ..env.maze_state import Cutting2DMazeState
label_desc: Use image node_id 2 for calling the ActionConversion obj's underlying member method code with example usage: obj.space_to_maze(action, maze_state) and returns: Cutting2DMazeAction