code: def insert_version(old_content, file):
      new_content = re.sub(
          r"(^depends_on.*)",
          lambda x: f"{x.group(1)}\nairflow_version = '{airflow_version}'",
          old_content,
          flags=re.MULTILINE,
      )
      file.write_text(new_content)
  
imports: from __future__ import annotations
  import os
  import re
  import textwrap
  from pathlib import Path
  from typing import TYPE_CHECKING, Iterable
  from alembic.script import ScriptDirectory
  from rich.console import Console
  from tabulate import tabulate
  from airflow import __version__
  from airflow.utils.db import _get_alembic_config
label_desc: Use image node_id 5 for calling a global function with example usage: insert_version(old_content, file) without return types