class_docstr: A test environment decorator class.
  
  This class provides additional functionality used for testing:
    - Accumulating reward over multiple frames.
    - Accumulating events over multiple frames.
    - Collecting RGB observations and saving them to image files.
class_docstr_tok: ["A","test","environment","decorator","class",".","This","class","provides","additional","functionality","used","for","testing",":","-","Accumulating","reward","over","multiple","frames",".","-","Accumulating","events","over","multiple","frames",".","-","Collecting","RGB","observations","and","saving","them","to","image","files","."]
code: def _find_observation_spec(self, name):
      for spec in self._environment.observation_spec():
          if name == spec["name"]:
              return spec
      return None
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import numpy
  from PIL import Image
label_desc: Use image node_id 11 for calling the TestEnvironmentDecorator obj's underlying member method code with example usage: obj._find_observation_spec(name) and returns: None, spec