code: def inspect_hash(path):
      " Calculate the hash of a database, efficiently. "
      m = hashlib.sha256()
      with path.open("rb") as fp:
          while True:
              data = fp.read(HASH_BLOCK_SIZE)
              if not data:
                  break
              m.update(data)
  
      return m.hexdigest(f inspect_hash(path):
      " Calculate the hash of a database, efficiently. "
      m = hashlib.sha256()
      with path.open("rb") as fp:
          while True:
              data = fp.read(HASH_BLOCK_SIZE)
              if not data:
                  break
              m.update(data)
  
      return m.hexdigest()
docs: Calculate the hash of a database, efficiently.