def METHOD_NAME(self, current_labels, new_labels, remove_labels):
    result = dict(current_labels)
    if new_labels:
        result.update(new_labels)
    if remove_labels:
        result = {k: v for k, v in result.items() if k not in remove_labels}
    return result