code: def _check_integrity(
      file_path: Union[str, Path], hash_prefix: str
  ) -> bool:
      with open(file_path, "rb") as f:
          sha_hash = hashlib.sha256(f.read()).hexdigest()
  
      return sha_hash[: len(hash_prefix)] == hash_prefix
  
file_path: doctr/doctr/utils/data.py
imports: import hashlib
  import logging
  import os
  import re
  import urllib
  import urllib.error
  import urllib.request
  from pathlib import Path
  from typing import Optional, Union
  from tqdm.auto import tqdm
label_desc: Use image node_id 2 for calling a global function with example usage: _check_integrity(file_path, hash_prefix) and returns: unknown