class_docstr: Bunch object (follows scipy).
  
  Its purposes is to homogenize output of different integrators.
docstr: Get value for last y.
  
  Allows to have y represented as an `gs.array` or `list[gs.array]` (latter
  for cases where they have different shapes).
  
  Assumes last `t` is the same.
docstr_tok: ["Get","value","for","last","y",".","Allows","to","have","y","represented","as","an","`","gs.array","`","or","`","list","[","gs.array","]","`","(","latter","for","cases","where","they","have","different","shapes",")",".","Assumes","last","`","t","`","is","the","same","."]
code: def get_last_y(self):
      """Get value for last y.
  
      Allows to have y represented as an `gs.array` or `list[gs.array]` (latter
      for cases where they have different shapes).
  
      Assumes last `t` is the same.
      """
      if isinstance(self.y, (list, tuple)):
          return gs.stack([y_[-1] for y_ in self.y])
  
      return self.y[-1]
  
imports: from abc import ABC, abstractmethod
  import scipy
  import geomstats.backend
  import geomstats.integrator
  from geomstats.errors import check_parameter_accepted_values
  from geomstats.numerics._common import result_to_backend_type
label_desc: Use image node_id 1 for calling the OdeResult obj's underlying member method code with example usage: obj.get_last_y() and returns: self, gs