def METHOD_NAME(left: bytes, right: bytes) -> bytes:
    """Calculate a hash of an internal node based on its child nodes.
    See documentation for `MerkleTree` for details.
    """
    hash_a = min(left, right)
    hash_b = max(left, right)
    return sha256(b"\x01" + hash_a + hash_b).digest()