code: def last(self, node):
          # TODO: check docstring
          
          return self._nodes.index(node) == len(self._nodes) - 1
docs: Returns True if node is the last node in the route
          
          Parameters
          ----------
          nodes : type
              Desc
              
          Returns
          -------
          bool
              True if node is the last node in the route