code: def inverse(self):
          
          inverses = []
          for segment in self:
              if len(segment) < 2:
                  inverses.append([])
              else:
                  inverses.append(segment.inverse())
          return inverses
docs: Calculate the inverse geodesic between locations in segments.
  
          Returns:
              list of 2-tuple of float: Groups in bearing and distance between
                  points in segments