docstr: RGB to grayscale conversion using scikit-image.
  
  Weights used for conversion:
  Y = 0.2125 R + 0.7154 G + 0.0721 B
  
  Reference:
  http://scikit-image.org/docs/dev/api/skimage.color.html#skimage.color.rgb2grey
docstr_tok: ["RGB","to","grayscale","conversion","using","scikit-image",".","Weights","used","for","conversion",":","Y","=","0.2125","R","+","0.7154","G","+","0.0721","B","Reference",":","http",":","\/\/scikit-image.org\/docs\/dev\/api\/skimage.color.html","#","skimage.color.rgb2grey"]
code: def test_grayscale_reset(self):
      """
      RGB to grayscale conversion using scikit-image.
  
      Weights used for conversion:
      Y = 0.2125 R + 0.7154 G + 0.0721 B
  
      Reference:
      http://scikit-image.org/docs/dev/api/skimage.color.html#skimage.color.rgb2grey
      """
      grayscale_output = np.round(
          np.dot(self.env.reset()[:, :, :3], [0.2125, 0.7154, 0.0721])
      ).astype(np.uint8)
      np.testing.assert_array_almost_equal(
          grayscale_output, self.env_g.reset()
      )
  
file_path: garage/tests/garage/envs/wrappers/test_grayscale_env.py
imports: import gym.spaces
  import numpy
  import pytest
  from garage.envs.wrappers import Grayscale
  from tests.fixtures.envs.dummy import DummyDiscretePixelEnv
label_desc: Use image node_id 6 for calling the TestGrayscale obj's underlying member method code with example usage: obj.test_grayscale_reset() without return types