def METHOD_NAME(self, board_id, color, text):
    url = "%s/boards/%s/labels" % (self.API_BASE_URL, board_id)
    r = requests.get(url, data=self.common_args)
    if not r.ok:
        logger.error(r.text)
        r.raise_for_status()
    exisiting_labels = r.json()
    for exisiting_label in exisiting_labels:
        if exisiting_label["name"] == text and exisiting_label["color"] == color:
            return exisiting_label["id"]
    # not found - create label
    args = self.common_args.copy()
    args["name"] = text
    args["color"] = color
    r = requests.post(url, data=args)
    if not r.ok:
        logger.error(r.text)
        r.raise_for_status()
    new_label = r.json()
    return new_label["id"]