code: def gzip_md5(
      fpath: Union[str, Path], chunk_size: int = 2**16
  ) -> str:
      file_hash = md5()
      with gzip.open(fpath, "rb") as f:
          for chunk in iter(lambda: f.read(chunk_size), b""):
              file_hash.update(chunk)
      return file_hash.hexdigest()
  
file_path: DeepPavlov/utils/prepare/hashes.py
imports: import argparse
  import gzip
  import sys
  import tarfile
  from hashlib import md5
  from pathlib import Path
  from typing import Dict, Optional, Union
  from zipfile import ZipFile
  from deeppavlov.core.data.utils import file_md5
label_desc: Use image node_id 2 for calling a global function with example usage: gzip_md5(fpath, chunk_size) and returns: file_hash