code: def prepare_pre_commit_ids_py_file(pre_commit_ids):
      PRE_COMMIT_IDS_PATH.write_text(
          black_format(
              content=render_template(
                  searchpath=AIRFLOW_BREEZE_SOURCES_PATH
                  / "src"
                  / "airflow_breeze",
                  template_name="pre_commit_ids",
                  context={"PRE_COMMIT_IDS": pre_commit_ids},
                  extension=".py",
                  autoescape=False,
                  keep_trailing_newline=True,
              ),
              is_pyi=False,
          )
      )
  
file_path: airflow/scripts/ci/pre_commit/pre_commit_check_pre_commit_hooks.py
imports: from __future__ import annotations
  import argparse
  import sys
  from pathlib import Path
  from collections import defaultdict
  from typing import Any
  import yaml
  from common_precommit_black_utils import black_format
  from common_precommit_utils import AIRFLOW_BREEZE_SOURCES_PATH, AIRFLOW_SOURCES_ROOT_PATH, insert_documentation
  from rich.console import Console
  from tabulate import tabulate
label_desc: Use image node_id 2 for calling a global function with example usage: prepare_pre_commit_ids_py_file(pre_commit_ids) without return types