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 an observation.
  
  Args:
      observation: The observation to flatten
  
  Returns:
      The flattened observation
docstr_tok: ["Flattens","an","observation",".","Args",":","observation",":","The","observation","to","flatten","Returns",":","The","flattened","observation"]
code: def observation(self, observation):
      """Flattens an observation.
  
      Args:
          observation: The observation to flatten
  
      Returns:
          The flattened observation
      """
      return spaces.flatten(self.env.observation_space, observation)
  
imports: import gym
  import gym.spaces
label_desc: Use image node_id 2 for calling the FlattenObservation obj's underlying member method code with example usage: obj.observation(observation) and returns: spaces