def METHOD_NAME(segs_dir: Path) -> Dict[str, Path]:
    paths_dict = {}
    for image_path in sorted(segs_dir.iterdir()):
        key = image_path.name.replace('.gz', '').replace('.nii', '')
        paths_dict[key] = image_path
    return paths_dict