class_docstr: Binding for `dm_control <https://arxiv.org/pdf/1801.00690.pdf>`.
docstr: Render the environment.
  
  Args:
      mode (str): render mode.
  
  Returns:
      np.ndarray: if mode is 'rgb_array', else return None.
  
  Raises:
      ValueError: if mode is not supported.
docstr_tok: ["Render","the","environment",".","Args",":","mode","(","str",")",":","render","mode",".","Returns",":","np.ndarray",":","if","mode","is","'rgb_array","'",",","else","return","None",".","Raises",":","ValueError",":","if","mode","is","not","supported","."]
code: def render(self, mode):
      """Render the environment.
  
      Args:
          mode (str): render mode.
  
      Returns:
          np.ndarray: if mode is 'rgb_array', else return None.
  
      Raises:
          ValueError: if mode is not supported.
      """
      self._validate_render_mode(mode)
      if mode == "rgb_array":
          return self._env.physics.render()
      return None
  
imports: import akro
  from dm_control import suite
  from dm_control.rl.control import flatten_observation
  from dm_env import StepType
  import numpy
  from garage import Environment, EnvSpec, EnvStep, StepType
  from garage.envs.dm_control.dm_control_viewer import DmControlViewer
label_desc: Use image node_id 9 for calling the DMControlEnv obj's underlying member method code with example usage: obj.render(mode) and returns: None, self