code: def get_md5(file_path: str, chunk_size: int = 1024 * 1024) -> str:
      """Get the md5 of the file.
  
      Args:
          file_path (str): Path to the file.
          chunk_size (int, optional): Chunk size. Defaults to 1024*1024.
  
      Returns:
          str: MD5 of the file.
      """
      if not osp.exists(file_path):
          raise FileNotFoundError(f"{file_path} does not exist.")
  
      if sys.version_info >= (3, 9):
          hash = hashlib.md5(usedforsecurity=False)
      else:
          hash = hashlib.md5()
      with open(file_path, "rb") as f:
          for chunk in iter(lambda: f.read(chunk_size), b""):
              hash.update(chunk)
  
      return hash.hexdigest()
  
file_path: mmocr/mmocr/utils/fileio.py
imports: import hashlib
  import os.path
  import sys
  import warnings
  from glob import glob
  from typing import List
  from mmengine import mkdir_or_exist
label_desc: Use image node_id 5 for calling a global function with example usage: get_md5(file_path, chunk_size) and returns: hash