class_docstr: Wraps observations and actions by replacing dictionary spaces with the sole contained sub-space.
  This wrapper is for example required when working with external frameworks not supporting dictionary spaces.
docstr: The currently active gym observation space.
          
docstr_tok: ["The","currently","active","gym","observation","space","."]
code: def observation_space(self) -> gym.spaces.Space:
      """The currently active gym observation space."""
      return self.env.observation_space.spaces[self.observation_key]
  
imports: from typing import Union, Dict, Any, Tuple, Optional
  import gym
  import numpy
  from maze.core.annotations import override
  from maze.core.env.base_env import BaseEnv
  from maze.core.env.maze_action import MazeActionType
  from maze.core.env.maze_state import MazeStateType
  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 EnvType, Wrapper
label_desc: Use image node_id 2 for calling the NoDictSpacesWrapper obj's underlying member method code with example usage: obj.observation_space() and returns: self