def METHOD_NAME(payload):
    msg = payload.SerializeToString()
    sig = generate_hash_signature(message=msg, key=get_secret(UNSUBSCRIBE_KEY_NAME))
    return urls.unsubscribe_link(payload=b64encode(msg), sig=b64encode(sig))