def METHOD_NAME(
    self, root: str, directory: str, split: str
) -> list[dict[str, str]]:
    """Return the paths of the files in the dataset.
    Args:
        root: root dir of dataset
        directory: sub directory LEVIR-CD+
        split: subset of dataset, one of [train, test]
    Returns:
        list of dicts containing paths for each pair of image1, image2, mask
    """
    files = []
    images = glob.glob(os.path.join(root, directory, split, "A", "*.png"))
    images = sorted(os.path.basename(image) for image in images)
    for image in images:
        image1 = os.path.join(root, directory, split, "A", image)
        image2 = os.path.join(root, directory, split, "B", image)
        mask = os.path.join(root, directory, split, "label", image)
        files.append(dict(image1=image1, image2=image2, mask=mask))
    return files