code: def fast_sync_inspect_snapshot( snapshot_path ):
      
      with open(snapshot_path, 'r') as f:
          info = fast_sync_inspect( f )
          if 'error' in info:
              log.error("Failed to inspect snapshot {}: {}".format(snapshot_path, info['error']))
              return {'error': 'Failed to inspect snapshot'}
  
          # get the hash of the file 
          hash_hex = get_file_hash(f, hashlib.sha256, fd_len=info['payload_size'])
          info['hash'] = hash_hex
  
      return info
docs: Inspect a snapshot
      Return useful information
      Return {'status': True, 'signatures': ..., 'payload_size': ..., 'sig_append_offset': ..., 'hash': ...} on success
      Return {'error': ...} on error