class_docstr: Grayscale wrapper for gym.Env, converting frames to grayscale.
  
  Only works with gym.spaces.Box environment with 2D RGB frames.
  The last dimension (RGB) of environment observation space will be removed.
  
  Example:
      env = gym.make('Env')
      # env.observation_space = (100, 100, 3)
  
      env_wrapped = Grayscale(gym.make('Env'))
      # env.observation_space = (100, 100)
  
  Args:
      env (gym.Env): Environment to wrap.
  
  Raises:
      ValueError: If observation space shape is not 3
          or environment is not gym.spaces.Box.
class_docstr_tok: ["Grayscale","wrapper","for","gym.Env",",","converting","frames","to","grayscale",".","Only","works","with","gym.spaces.Box","environment","with","2D","RGB","frames",".","The","last","dimension","(","RGB",")","of","environment","observation","space","will","be","removed",".","Example",":","env","=","gym.make","(","'Env","'",")","#","env.observation_space","=","(","100",",","100",",","3",")","env_wrapped","=","Grayscale","(","gym.make","(","'Env","'",")",")","#","env.observation_space","=","(","100",",","100",")","Args",":","env","(","gym.Env",")",":","Environment","to","wrap",".","Raises",":","ValueError",":","If","observation","space","shape","is","not","3","or","environment","is","not","gym.spaces.Box","."]
docstr: gym.Env reset function.
  
  Args:
      **kwargs: Unused.
  
  Returns:
      np.ndarray: Observation conforming to observation_space
docstr_tok: ["gym.Env","reset","function",".","Args",":","*","*","kwargs",":","Unused",".","Returns",":","np.ndarray",":","Observation","conforming","to","observation_space"]
code: def reset(self, **kwargs):
      """gym.Env reset function.
  
      Args:
          **kwargs: Unused.
  
      Returns:
          np.ndarray: Observation conforming to observation_space
      """
      del kwargs
      return _color_to_grayscale(self.env.reset())
  
file_path: garage/src/garage/envs/wrappers/grayscale.py
imports: import warnings
  import gym
  import gym.spaces
  import numpy
  from skimage import color, img_as_ubyte
label_desc: Use image node_id 4 for calling the Grayscale obj's underlying member method code with example usage: obj.reset() and returns: _color_to_grayscale