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 __init__(self, dm_env):
      super(DMEnv, self).__init__()
      self._env = dm_env
      self._prev_obs = None
  
      if specs is None:
          raise RuntimeError(
              (
                  "The `specs` module from `dm_env` was not imported. Make sure "
                  "`dm_env` is installed and visible in the current python "
                  "environment."
              )
          )
  
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 1 to create a new DMEnv object from inherited base classes: gym with example: obj = DMEnv(dm_env)