code: def test_spec_obs_space(self):
      obs, _ = self.wrapped.reset()
      assert self.wrapped.observation_space.contains(obs)
      assert self.wrapped.spec.observation_space.contains(obs)
      assert (
          self.wrapped.spec.observation_space
          == self.wrapped.observation_space
      )
  
file_path: garage/tests/garage/envs/test_task_onehot_wrapper.py
imports: import numpy
  from garage.envs import PointEnv, TaskOnehotWrapper
label_desc: Use image node_id 3 for calling the TestSingleWrappedEnv obj's underlying member method code with example usage: obj.test_spec_obs_space() without return types