class_docstr: Converts agent actions to actual environment MazeActions.
  
  :param max_pieces_in_inventory: Size of the inventory
docstr: Returns Gym dict action space.
docstr_tok: ["Returns","Gym","dict","action","space","."]
code: def space(self) -> spaces.Dict:
      """Returns Gym dict action space."""
      return spaces.Dict(
          {
              "piece_idx": spaces.Discrete(
                  self.max_pieces_in_inventory
              ),  # Which piece should be cut
              "cut_rotation": spaces.Discrete(2),  # Rotate: (yes / no)
              "cut_order": spaces.Discrete(
                  2
              ),  # Cutting order: (xy / yx)
          }
      )
  
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 4 for calling the ActionConversion obj's underlying member method code with example usage: obj.space() and returns: spaces