def finalize(self):
        """
        Finalizes the hash context and returns the hash digest as bytes.
        """

        Finalizes the hash context and returns the hash digest as bytes.
        
stackoverflow/venv/lib/python3.6/site-packages/cryptography/hazmat/primitives/hashes.py