import json


def _get_synset_labels(filepath: str) -> dict:
    """
    Gets synsets from json file in a dict
    Args:
        filepath: json file path

    Returns:
        Dict having the following structure:
        {str id : (int synset_ID, str label_name )}

    """

    with open(filepath, "r") as f:
        raw_labels_dict = json.load(f)
    labels_dict = dict()

    for i in raw_labels_dict:
        labels_dict[raw_labels_dict[i]["id"]] = (
            int(i),
            raw_labels_dict[i]["label"],
        )
    return labels_dict