def METHOD_NAME(path: Path):
    sha256_hash = hashlib.sha256()
    with path.open("rb") as file:
        # Read and update hash string value in blocks of 4K
        for byte_block in iter(lambda: file.read(4096), b""):
            sha256_hash.update(byte_block)
    return sha256_hash.hexdigest()