def load_labels_map(labels_map_path):
    """Loads the labels map from the given path.

    The labels mmap must be in the following plain text format::

        1:label1
        2:label2
        3:label3
        ...

    The indexes are irrelevant to this function, they can be in any order and
    can start from zero, one, or another number.

    Args:
        labels_map_path: the path to a labels map file

    Returns:
        a dictionary mapping indexes to label strings
    """
    labels_map = {}
    with open(labels_map_path, "r") as f:
        for line in f:
            idx, label = line.split(":")
            labels_map[int(idx)] = label.strip()

    return labels_map