def cache(self, delete_lineage=False):
        if len(self._lineage) == 0 or self._lineage[-1] == transformations.CACHE_T:
            if not isinstance(self._base_sequence, list):
                self._base_sequence = list(self._base_sequence)
                self._lineage.apply(transformations.CACHE_T)
        else:
            self._base_sequence = list(self._evaluate())
            self._lineage.apply(transformations.CACHE_T)
        if delete_lineage:
            self._lineage = Lineage()
        return self
Caches the result of the Sequence so far. This means that any functions applied on the
dataset/ETHPy150Open EntilZha/PyFunctional/functional/pipeline.py/Sequence.cache