def get_label_ids(service):
    """Returns labelIds given the service you're using. Used to add labels to messages"""
    all_labels = service.users().labels().list(userId="me").execute()
    return {label["name"]: label["id"] for label in all_labels["labels"]}