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 render(self, mode="rgb_array"):
      if self._prev_obs is None:
          raise ValueError(
              "Environment not started. Make sure to reset before rendering."
          )
  
      if mode == "rgb_array":
          return self._prev_obs
      else:
          raise NotImplementedError(
              "Render mode '{}' is not supported.".format(mode)
          )
  
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 4 for calling the DMEnv obj's underlying member method code with example usage: obj.render(mode) and returns: self