docstr: make sure that flattened observations occur in the order expected
docstr_tok: ["make","sure","that","flattened","observations","occur","in","the","order","expected"]
code: def test_flattened_environment(
      self, observation_space, ordered_values
  ):
      """
      make sure that flattened observations occur in the order expected
      """
      env = FakeEnvironment(observation_space=observation_space)
      wrapped_env = FlattenObservation(env)
      flattened, info = wrapped_env.reset()
  
      unflattened = unflatten(env.observation_space, flattened)
      original = env.observation
  
      self._check_observations(
          original, flattened, unflattened, ordered_values
      )
  
file_path: gym/tests/wrappers/test_flatten.py
imports: from collections import OrderedDict
  from typing import Optional
  import numpy
  import pytest
  import gym
  from gym.spaces import Box, Dict, flatten, unflatten
  from gym.wrappers import FlattenObservation
label_desc: Use image node_id 1 for calling the TestFlattenEnvironment obj's underlying member method code with example usage: obj.test_flattened_environment(observation_space, ordered_values) without return types