def METHOD_NAME(challenge, response):
    cmd = {
        "command": "authorize",
    }
    if challenge:
        cmd["cookie"] = f"session{os.getpid()}{time.time()}"
        cmd["challenge"] = challenge
    if response:
        cmd["response"] = response
    send_frame(cmd)