class_docstr: A DM Control Suite preprocessing wrapper.
  
  Attributes:
    environment: The underlying environment that is wrapped for preprocessing.
    game_over: True when the last environment step led to a game over signal.
class_docstr_tok: ["A","DM","Control","Suite","preprocessing","wrapper",".","Attributes",":","environment",":","The","underlying","environment","that","is","wrapped","for","preprocessing",".","game_over",":","True","when","the","last","environment","step","led","to","a","game","over","signal","."]
docstr: Initializes a preprocessing wrapper for a deepmind control environment.
  
  Args:
    environment: The environment to wrap for preprocessing.
    action_repeat: The number of times to repeat a supplied action. Must be
      greater than 0.
docstr_tok: ["Initializes","a","preprocessing","wrapper","for","a","deepmind","control","environment",".","Args",":","environment",":","The","environment","to","wrap","for","preprocessing",".","action_repeat",":","The","number","of","times","to","repeat","a","supplied","action",".","Must","be","greater","than","0","."]
code: def __init__(
      self, environment: control.Environment, action_repeat: int = 1
  ):
      """Initializes a preprocessing wrapper for a deepmind control environment.
  
      Args:
        environment: The environment to wrap for preprocessing.
        action_repeat: The number of times to repeat a supplied action. Must be
          greater than 0.
      """
      if action_repeat < 1:
          raise ValueError(
              f"Action repeat must be > 0. Got {action_repeat}."
          )
  
      self.environment = environment
      self._action_repeat = action_repeat
      self.game_over = False
  
imports: import collections
  from typing import Any, Mapping, Tuple
  from dm_control import suite
  from dm_control.rl import control
  import dm_env
  from dm_env import specs
  import gin
  import gym
  from gym import spaces
  import numpy
label_desc: Use image node_id 1 to create a new DeepmindControlPreprocessing object from inherited base classes: gym with example: obj = DeepmindControlPreprocessing(environment, action_repeat)