def get_paths_and_targets(
        self, root_appended=True
    ) -> Sequence[Sequence[Tuple[Union[str, Path], int]]]:
        """Return self._paths_and_targets with root appended or not"""
        if not root_appended:
            return self._paths_and_targets
        else:
            paths_and_targets: List[List[Tuple[Path, int]]] = []
            for path_and_target_list in self._paths_and_targets:
                paths_and_targets.append([])
                for img_path, target in path_and_target_list:
                    paths_and_targets[-1].append((self.root / img_path, target))
            return paths_and_targets
Return self._paths_and_targets with root appended or not
avalanche/benchmarks/datasets/clear/clear.py