def METHOD_NAME(self, dir_path: str) -> List[Tuple[Image.Image, Path]]:
    """Returns a list of PIL Images loaded from all valid files contained in dir_path."""
    imgs_and_paths = []
    for file_or_dir in os.listdir(dir_path):
        path = Path(dir_path).joinpath(file_or_dir)
        if path.is_file():
            try:
                img = Image.open(path)
                if not img.mode == "RGB":
                    img = img.convert("RGB")
                imgs_and_paths.append((img, path))
            except PIL.UnidentifiedImageError:
                self.logger.warning(
                    f"File at {path} raised UnidentifiedImageError and will be skipped."
                )
    return imgs_and_paths