def METHOD_NAME(script: bytes) -> bool:
    """
    Determine whether a script is a P2WSH output script.
    :param script: The script
    :returns: Whether the script is a P2WSH output script
    """
    is_wit, wit_ver, wit_prog = is_witness(script)
    if not is_wit:
        return False
    elif wit_ver != 0:
        return False
    return len(wit_prog) == 32