class_docstr: A dummy discrete pixel environment.
  
  It follows Atari game convention, where actions are 'NOOP', 'FIRE', ...
  It also contains self.unwrapped.ale.lives, get_action_meanings for testing.
  
  Several properties are made for testing purpose as following:
  
  -Observations are
      after reset    : np.ones(self._shape).
      action 1 (FIRE): np.full(self._shape, 2).
      otherwise      : random if self.random is True,
          otherwise previous state + action.
  
  -The environment has 5 lives.
  -Done will be True if
      -all 5 lives are exhausted
      -env.step(2), followed by env.step(1)
  
  Args:
      random (bool): Whether observations are generated randomly.
class_docstr_tok: ["A","dummy","discrete","pixel","environment",".","It","follows","Atari","game","convention",",","where","actions","are","'NOOP","'",",","'FIRE","'",",","...","It","also","contains","self.unwrapped.ale.lives",",","get_action_meanings","for","testing",".","Several","properties","are","made","for","testing","purpose","as","following",":","-Observations","are","after","reset",":","np.ones","(","self._shape",")",".","action","1","(","FIRE",")",":","np.full","(","self._shape",",","2",")",".","otherwise",":","random","if","self.random","is","True",",","otherwise","previous","state","+","action",".","-The","environment","has","5","lives",".","-Done","will","be","True","if","-all","5","lives","are","exhausted","-env.step","(","2",")",",","followed","by","env.step","(","1",")","Args",":","random","(","bool",")",":","Whether","observations","are","generated","randomly","."]
docstr: akro.Box: Observation space of this environment.
docstr_tok: ["akro.Box",":","Observation","space","of","this","environment","."]
code: def observation_space(self):
      """akro.Box: Observation space of this environment."""
      return akro.from_gym(self._observation_space)
  
file_path: garage/tests/fixtures/envs/dummy/dummy_discrete_pixel_env.py
imports: from unittest import mock
  import akro
  import numpy
  from garage import EnvSpec
  from tests.fixtures.envs.dummy import DummyEnv
label_desc: Use image node_id 2 for calling the DummyDiscretePixelEnv obj's underlying member method code with example usage: obj.observation_space() and returns: akro