class_docstr: Converts agent actions to actual environment maze_actions.
  
  :param max_pieces_in_inventory: Size of the inventory
docstr: Converts environment MazeAction object to agent dictionary action.
docstr_tok: ["Converts","environment","MazeAction","object","to","agent","dictionary","action","."]
code: def maze_to_space(
      self, maze_action: Cutting2DMazeAction
  ) -> Dict[str, int]:
      """Converts environment MazeAction object to agent dictionary action."""
      return {
          "piece_idx": maze_action.piece_id,
          "cut_rotation": int(maze_action.rotate),
          "cut_order": int(maze_action.reverse_cutting_order),
      }
  
file_path: maze/tutorials/tutorial_maze_env/part06_struct_env/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 3 for calling the ActionConversion obj's underlying member method code with example usage: obj.maze_to_space(maze_action) and returns: dict