class_docstr: Observation wrapper that flattens the observation.
  
  Example:
      >>> import gym
      >>> env = gym.make('CarRacing-v1')
      >>> env.observation_space.shape
      (96, 96, 3)
      >>> env = FlattenObservation(env)
      >>> env.observation_space.shape
      (27648,)
      >>> obs = env.reset()
      >>> obs.shape
      (27648,)
class_docstr_tok: ["Observation","wrapper","that","flattens","the","observation",".","Example",":",">",">",">","import","gym",">",">",">","env","=","gym.make","(","'CarRacing-v1","'",")",">",">",">","env.observation_space.shape","(","96",",","96",",","3",")",">",">",">","env","=","FlattenObservation","(","env",")",">",">",">","env.observation_space.shape","(","27648",",",")",">",">",">","obs","=","env.reset","(",")",">",">",">","obs.shape","(","27648",",",")"]
docstr: Flattens the observations of an environment.
  
  Args:
      env: The environment to apply the wrapper
docstr_tok: ["Flattens","the","observations","of","an","environment",".","Args",":","env",":","The","environment","to","apply","the","wrapper"]
code: def __init__(self, env: gym.Env):
      """Flattens the observations of an environment.
  
      Args:
          env: The environment to apply the wrapper
      """
      super().__init__(env)
      self.observation_space = spaces.flatten_space(
          env.observation_space
      )
  
imports: import gym
  import gym.spaces
label_desc: Use image node_id 1 to create a new FlattenObservation object from inherited base classes: gym with example: obj = FlattenObservation(env)