def METHOD_NAME(member_id):
    """ cancel membership request """
    context = {'model': model, 'session': model.Session,
               'user': g.user or g.author}
    try:
        get_action('member_request_cancel')(context, {"member": member_id})
        return h.redirect_to('organizations_index')
    except NotAuthorized:
        abort(403, NOT_AUTH_MESSAGE)
    except NotFound:
        abort(404, _('Request not found'))