code: def _check_observations(
      self, original, flattened, unflattened, ordered_values
  ):
      # make sure that unflatten(flatten(original)) == original
      assert set(unflattened.keys()) == set(original.keys())
      for k, v in original.items():
          np.testing.assert_allclose(unflattened[k], v)
  
      if ordered_values:
          # make sure that the values were flattened in the order they appeared in the
          # OrderedDict
          np.testing.assert_allclose(sorted(flattened), flattened)
  
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 3 for calling the TestFlattenEnvironment obj's underlying member method code with example usage: obj._check_observations(original, flattened, unflattened, ordered_values) without return types