code: def generate_md5(filename, file_size: int = 65536):
      """Generates md5 hash for the file."""
      hash_md5 = hashlib.md5()
      with open(filename, "rb") as f:
          for file_chunk in iter(lambda: f.read(file_size), b""):
              hash_md5.update(file_chunk)
      return hash_md5.hexdigest()
  
file_path: airflow/dev/breeze/src/airflow_breeze/utils/md5_build_check.py
imports: from __future__ import annotations
  import hashlib
  import os
  import sys
  from pathlib import Path
  from typing import TYPE_CHECKING
  from airflow_breeze.global_constants import ALL_PROVIDER_YAML_FILES, FILES_FOR_REBUILD_CHECK
  from airflow_breeze.utils.console import get_console
  from airflow_breeze.utils.path_utils import AIRFLOW_SOURCES_ROOT
  from airflow_breeze.utils.run_utils import run_command
  from airflow_breeze.utils.shared_options import get_verbose
label_desc: Use image node_id 2 for calling a global function with example usage: generate_md5(filename, file_size) and returns: hash_md5