def METHOD_NAME(blocking, blocked_rooms=None):
    if blocked_rooms is None:
        blocked_rooms = set(blocking.blocked_rooms)
    rooms_by_owner = defaultdict(list)
    for blocked_room in blocked_rooms:
        if blocked_room.room.can_manage(session.user, allow_admin=False):
            blocked_room.approve(notify_blocker=False)
        else:
            # TODO: notify all managers of a room?
            rooms_by_owner[blocked_room.room.owner].append(blocked_room)
    for owner, rooms in rooms_by_owner.items():
        notify_request(owner, blocking, rooms)