def METHOD_NAME(
    cls,
    type: Literal["atlas", "modes"],
    name: str,
    image_path: Path | str,
    labels_path: Path | str,
) -> Self:
    image_path = Path(image_path)
    labels_frame = read_spreadsheet(labels_path)
    labels: dict[int, str] = dict()
    for label_tuple in labels_frame.itertuples(index=False):
        # First columnn is the index, second is the name.
        labels[int(label_tuple[0])] = format_like_bids(str(label_tuple[1]))
    image = nib.loadsave.load(image_path)
    return cls(type, name, image, labels)