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 step(self, action):
      ts = self._env.step(action)
  
      reward = ts.reward
      if reward is None:
          reward = 0.0
  
      return (
          ts.observation,
          reward,
          ts.last(),
          False,
          {"discount": ts.discount},
      )
  
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 2 for calling the DMEnv obj's underlying member method code with example usage: obj.step(action) and returns: ts,  reward,  ts,  False,  dict