class_docstr: Wraps actions by replacing the dictionary action space with the sole contained sub-space.
  This wrapper is for example required when working with external frameworks not supporting dictionary action spaces.
class_docstr_tok: ["Wraps","actions","by","replacing","the","dictionary","action","space","with","the","sole","contained","sub-space",".","This","wrapper","is","for","example","required","when","working","with","external","frameworks","not","supporting","dictionary","action","spaces","."]
code: def __init__(self, env):
      super().__init__(env)
      assert isinstance(env.action_space, gym.spaces.Dict)
      assert len(env.action_space.spaces) == 1
      self.action_key = list(env.action_space.spaces.keys())[0]
  
file_path: maze/maze/core/wrappers/no_dict_action_wrapper.py
imports: from typing import Dict, Union
  import gym
  import numpy
  from maze.core.annotations import override
  from maze.core.env.simulated_env_mixin import SimulatedEnvMixin
  from maze.core.env.structured_env_spaces_mixin import StructuredEnvSpacesMixin
  from maze.core.wrappers.wrapper import ActionWrapper, EnvType
label_desc: Use image node_id 1 to create a new NoDictActionWrapper object from inherited base classes: ActionWrapper with example: obj = NoDictActionWrapper(env)