code: def __init__(
      self,
      render_mode=None,
      observation_keys: Tuple[str, ...] = ("state",),
  ):
      self.observation_space = spaces.Dict(
          {
              name: spaces.Box(
                  shape=(2,), low=-1, high=1, dtype=np.float32
              )
              for name in observation_keys
          }
      )
      self.action_space = spaces.Box(
          shape=(1,), low=-1, high=1, dtype=np.float32
      )
      self.render_mode = render_mode
  
file_path: gym/tests/wrappers/test_filter_observation.py
imports: from typing import Optional, Tuple
  import numpy
  import pytest
  import gym
  from gym import spaces
  from gym.wrappers.filter_observation import FilterObservation
label_desc: Use image node_id 1 to create a new FakeEnvironment object from inherited base classes: gym with example: obj = FakeEnvironment(render_mode, observation_keys)