import pickle


def load_masks(masks_path):
    """
    masks file format: dict
      - key: image_name
      - value: mask
      - example
        {
            "4627_c8_f0118398.jpg": numpy.ndarray([[True, True, ...], ..., [True, True, ...]]),
            "0580_c1_f0154127.jpg": numpy.ndarray([[True, True, ...], ..., [True, True, ...]]),
            ...
        }
    """
    with open(masks_path, "rb") as f:
        masks = pickle.load(f)
    return masks