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
This method is called before any tests are run.
dataset/ETHPy150Open EntilZha/PyFunctional/functional/pipeline.py/Sequence.cache--crossover with--dataset/ETHPy150Open nasa/mplStyle/mplStyle/types/convert/test/test_toListOf.py/TesttoListOf.setUp