class_docstr: A dummy discrete environment.
class_docstr_tok: ["A","dummy","discrete","environment","."]
docstr: Step the environment.
docstr_tok: ["Step","the","environment","."]
code: def step(self, action):
      """Step the environment."""
      if self.state is not None:
          if self.random:
              obs = self.observation_space.sample()
          else:
              obs = self.state + action / 10.0
      else:
          raise RuntimeError(
              "DummyEnv: reset() must be called before step()!"
          )
      return obs, 0, True, dict()
  
file_path: garage/tests/fixtures/envs/dummy/dummy_discrete_2d_env.py
imports: import gym
  import numpy
  from tests.fixtures.envs.dummy import DummyEnv
label_desc: Use image node_id 6 for calling the DummyDiscrete2DEnv obj's underlying member method code with example usage: obj.step(action) and returns: obs,  int,  True,  dict