class_docstr: An rgb-to-gray-scale conversion pre-processor.
  
  :param observation_space: The observation space to pre-process.
  :param rgb_dim: Dimension of the rgb channels.
class_docstr_tok: ["An","rgb-to-gray-scale","conversion","pre-processor",".",":","param","observation_space",":","The","observation","space","to","pre-process",".",":","param","rgb_dim",":","Dimension","of","the","rgb","channels","."]
code: def __init__(self, observation_space: spaces.Box, rgb_dim: int):
      super().__init__(observation_space)
      self.rgb_dim = rgb_dim
  
file_path: maze/maze/core/wrappers/observation_preprocessing/preprocessors/rgb2gray.py
imports: from typing import Tuple
  import numpy
  from gym import spaces
  from maze.core.wrappers.observation_preprocessing.preprocessors.base import PreProcessor
  from maze.core.annotations import override
label_desc: Use image node_id 1 to create a new Rgb2GrayPreProcessor object from inherited base classes: PreProcessor with example: obj = Rgb2GrayPreProcessor(observation_space, rgb_dim)