def METHOD_NAME(revert: Dict[str, str]) -> None:
    parser = argparse.ArgumentParser()
    subparser = parser.add_subparsers()
    group = subparser.add_parser("revert")
    group.add_argument("-c", "--classification")
    group.add_argument("-m", "--message")
    for line in revert["body"].splitlines():
        try:
            command = shlex.split(re.sub(r"@pytorch(merge|)bot", "", line.strip()))
            parsed = parser.parse_args(command)
            if parsed.classification is None or parsed.message is None:
                continue
            revert["code"] = parsed.classification
            revert["message"] = parsed.message
            return
        except (ValueError, AttributeError):
            continue
    raise RuntimeError(f"failed to parse {revert['comment_url']}")