code: def check_md5_sum_for_file(
      file_to_check: str, md5sum_cache_dir: Path, update: bool
  ):
      file_to_get_md5 = AIRFLOW_SOURCES_ROOT / file_to_check
      md5_checksum = generate_md5(file_to_get_md5)
      sub_dir_name = file_to_get_md5.parts[-2]
      actual_file_name = file_to_get_md5.parts[-1]
      cache_file_name = Path(
          md5sum_cache_dir,
          sub_dir_name + "-" + actual_file_name + ".md5sum",
      )
      file_content = md5_checksum + "  " + str(file_to_get_md5) + "\n"
      is_modified = check_md5checksum_in_cache_modified(
          file_content, cache_file_name, update=update
      )
      return is_modified
  
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 3 for calling a global function with example usage: check_md5_sum_for_file(file_to_check, md5sum_cache_dir, update) and returns: is_modified