class_docstr: A testing implementation for the ALE object in atari games.
class_docstr_tok: ["A","testing","implementation","for","the","ALE","object","in","atari","games","."]
docstr: Updates the buffer with a random grayscale observation.
docstr_tok: ["Updates","the","buffer","with","a","random","grayscale","observation","."]
code: def getScreenGrayscale(self, buffer: np.ndarray):
      """Updates the buffer with a random grayscale observation."""
      buffer[...] = self.grayscale_obs_space.sample()
  
file_path: gym/tests/wrappers/test_atari_preprocessing.py
imports: import numpy
  import pytest
  from gym.spaces import Box, Discrete
  from gym.wrappers import AtariPreprocessing, StepAPICompatibility
  from tests.testing_env import GenericTestEnv, old_step_fn
label_desc: Use image node_id 2 for calling the AleTesting obj's underlying member method code with example usage: obj.getScreenGrayscale(buffer) without return types