def METHOD_NAME(notification):
    return _generate_unsubscribe_link(
        unsubscribe_pb2.UnsubscribePayload(
            user_id=notification.user_id,
            topic_action=unsubscribe_pb2.UnsubscribeTopicAction(
                topic=notification.topic,
                action=notification.action,
            ),
        )
    )