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()
  
imports: import hashlib
  from .utils import detect_spatialite, detect_fts, detect_primary_keys, escape_sqlite, get_all_foreign_keys, table_columns, sqlite3
label_desc: Use image node_id 1 for calling a global function with example usage: inspect_hash(path) and returns: m