def METHOD_NAME(self,label_leaf_id):
    dbm = access.DBMan(LOST_CONFIG)
    identity = get_jwt_identity()
    user = dbm.get_user_by_id(identity)
    if not user.has_role(roles.DESIGNER):
        dbm.close_session()
        return "You are not authorized.", 401
    else:
        label = dbm.get_label_leaf(label_leaf_id)
        dbm.METHOD_NAME(label)
        dbm.commit()
        dbm.close_session()
        return "success"