def METHOD_NAME(self, download: bool = True) -> Tuple[List[Tuple[str, int]], List[int]]:
    def process(line: str, sep="/") -> Tuple[str, int]:
        image, idx = line.split()
        return path.join(self.images_dir, image.lstrip(sep).replace(sep, os.sep)), int(idx)
    file, md5 = self._FILE_LIST_META[self.split]
    file = path.join(self.root, file)
    if not self._check_integrity(file, md5, download):
        self.download_devkit()
    with open(file) as fh:
        images = [process(line) for line in fh]
    _, targets = zip(*images)
    return images, list(targets)