class_docstr: Returned with every call to `step` and `reset` on an environment.
  
  A `TimeStep` contains the data emitted by an environment at each step of
  interaction. A `TimeStep` holds a `step_type`, an `observation`, and an
  associated `reward` and `discount`.
  
  The first `TimeStep` in a sequence will have `StepType.FIRST`. The final
  `TimeStep` will have `StepType.LAST`. All other `TimeStep`s in a sequence will
  have `StepType.MID.
  
  Attributes:
    step_type: A `StepType` enum value.
    reward: A scalar, or 0 if `step_type` is `StepType.FIRST`, i.e. at the
      start of a sequence.
    discount: A discount value in the range `[0, 1]`, or 0 if `step_type`
      is `StepType.FIRST`, i.e. at the start of a sequence.
    observation: A NumPy array, or a dict, list or tuple of arrays.
class_docstr_tok: ["Returned","with","every","call","to","`","step","`","and","`","reset","`","on","an","environment",".","A","`","TimeStep","`","contains","the","data","emitted","by","an","environment","at","each","step","of","interaction",".","A","`","TimeStep","`","holds","a","`","step_type","`",",","an","`","observation","`",",","and","an","associated","`","reward","`","and","`","discount","`",".","The","first","`","TimeStep","`","in","a","sequence","will","have","`","StepType.FIRST","`",".","The","final","`","TimeStep","`","will","have","`","StepType.LAST","`",".","All","other","`","TimeStep","`","s","in","a","sequence","will","have","`","StepType.MID",".","Attributes",":","step_type",":","A","`","StepType","`","enum","value",".","reward",":","A","scalar",",","or","0","if","`","step_type","`","is","`","StepType.FIRST","`",",","i.e",".","at","the","start","of","a","sequence",".","discount",":","A","discount","value","in","the","range","`","[","0",",","1","]","`",",","or","0","if","`","step_type","`","is","`","StepType.FIRST","`",",","i.e",".","at","the","start","of","a","sequence",".","observation",":","A","NumPy","array",",","or","a","dict",",","list","or","tuple","of","arrays","."]
code: def last(self):
      return self.step_type is StepType.LAST
  
file_path: pysc2/pysc2/env/environment.py
imports: import abc
  import collections
  import enum
label_desc: Use image node_id 3 for calling the TimeStep obj's underlying member method code with example usage: obj.last() and returns: unknown