def after_train_dataset_adaptation(
                self, strategy: "SupervisedTemplate", **kwargs
            ):
                """
                Check that the dataset used for training contains the
                correct number of samples.
                """
                cum_len = sum([len(exp.dataset) for exp in self.benchmark.train_stream])
                assert len(strategy.adapted_dataset) == cum_len

                Check that the dataset used for training contains the
                correct number of samples.
                
tests/training/test_strategies.py