def METHOD_NAME(self, root: str) -> list[dict[str, str]]:
    """Return the paths of the files in the dataset.
    Args:
        root: root dir of dataset
    Returns:
        list of dicts containing paths for each pair of image and label
    """
    files = []
    root_dir = os.path.join(root, self.directory, self.split)
    images = glob.glob(os.path.join(root_dir, "images", "*.tif"))
    images = sorted(images)
    if self.split == "train":
        labels = glob.glob(os.path.join(root_dir, "gt", "*.tif"))
        labels = sorted(labels)
        for img, lbl in zip(images, labels):
            files.append({"image": img, "label": lbl})
    else:
        for img in images:
            files.append({"image": img})
    return files