class_docstr: A `gym.Env` wrapper for the `dm_env` API.
class_docstr_tok: ["A","`","gym.Env","`","wrapper","for","the","`","dm_env","`","API","."]
code: def observation_space(self):
      spec = self._env.observation_spec()
      return _convert_spec_to_space(spec)
  
file_path: ray/rllib/env/wrappers/dm_env_wrapper.py
imports: import gymnasium
  from gymnasium import spaces
  import numpy
  from ray.rllib.utils.annotations import PublicAPI
label_desc: Use image node_id 6 for calling the DMEnv obj's underlying member method code with example usage: obj.observation_space() and returns: _convert_spec_to_space