class_docstr: Abstract base class for Python RL environments.
class_docstr_tok: ["Abstract","base","class","for","Python","RL","environments","."]
docstr: Updates the environment according to the action and returns a `TimeStep`.
  
  If the environment returned a `TimeStep` with `StepType.LAST` at the
  previous step, this call to `step` will start a new sequence and `action`
  will be ignored.
  
  This method will also start a new sequence if called after the environment
  has been constructed and `restart` has not been called. Again, in this case
  `action` will be ignored.
  
  Args:
    action: A NumPy array, or a dict, list or tuple of arrays corresponding to
      `action_spec()`.
  
  Returns:
    A `TimeStep` namedtuple containing:
      step_type: A `StepType` value.
      reward: Reward at this timestep.
      discount: A discount in the range [0, 1].
      observation: A NumPy array, or a dict, list or tuple of arrays
        corresponding to `observation_spec()`.
docstr_tok: ["Updates","the","environment","according","to","the","action","and","returns","a","`","TimeStep","`",".","If","the","environment","returned","a","`","TimeStep","`","with","`","StepType.LAST","`","at","the","previous","step",",","this","call","to","`","step","`","will","start","a","new","sequence","and","`","action","`","will","be","ignored",".","This","method","will","also","start","a","new","sequence","if","called","after","the","environment","has","been","constructed","and","`","restart","`","has","not","been","called",".","Again",",","in","this","case","`","action","`","will","be","ignored",".","Args",":","action",":","A","NumPy","array",",","or","a","dict",",","list","or","tuple","of","arrays","corresponding","to","`","action_spec","(",")","`",".","Returns",":","A","`","TimeStep","`","namedtuple","containing",":","step_type",":","A","`","StepType","`","value",".","reward",":","Reward","at","this","timestep",".","discount",":","A","discount","in","the","range","[","0",",","1","]",".","observation",":","A","NumPy","array",",","or","a","dict",",","list","or","tuple","of","arrays","corresponding","to","`","observation_spec","(",")","`","."]
code: def step(self, action):
      """Updates the environment according to the action and returns a `TimeStep`.
  
      If the environment returned a `TimeStep` with `StepType.LAST` at the
      previous step, this call to `step` will start a new sequence and `action`
      will be ignored.
  
      This method will also start a new sequence if called after the environment
      has been constructed and `restart` has not been called. Again, in this case
      `action` will be ignored.
  
      Args:
        action: A NumPy array, or a dict, list or tuple of arrays corresponding to
          `action_spec()`.
  
      Returns:
        A `TimeStep` namedtuple containing:
          step_type: A `StepType` value.
          reward: Reward at this timestep.
          discount: A discount in the range [0, 1].
          observation: A NumPy array, or a dict, list or tuple of arrays
            corresponding to `observation_spec()`.
      """
  
file_path: pysc2/pysc2/env/environment.py
imports: import abc
  import collections
  import enum
label_desc: Use image node_id 2 for calling the Base obj's underlying member method code with example usage: obj.step(action) without return types