class_docstr: An array flattening pre-processor.
  
  :param observation_space: The observation space to pre-process.
  :param num_flatten_dims: The number of dimensions to flatten out (from right).
class_docstr_tok: ["An","array","flattening","pre-processor",".",":","param","observation_space",":","The","observation","space","to","pre-process",".",":","param","num_flatten_dims",":","The","number","of","dimensions","to","flatten","out","(","from","right",")","."]
code: def __init__(
      self, observation_space: spaces.Box, num_flatten_dims: int
  ):
      super().__init__(observation_space)
      self.num_flatten_dims = num_flatten_dims
  
file_path: maze/maze/core/wrappers/observation_preprocessing/preprocessors/flatten.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 FlattenPreProcessor object from inherited base classes: PreProcessor with example: obj = FlattenPreProcessor(observation_space, num_flatten_dims)