code: def replace_text_between(
      file: Path, start: str, end: str, replacement_text: str
  ):
      original_text = file.read_text()
      leading_text = original_text.split(start)[0]
      trailing_text = original_text.split(end)[1]
      file.write_text(
          leading_text + start + replacement_text + end + trailing_text
      )
  
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 1 for calling a global function with example usage: replace_text_between(file, start, end, replacement_text) without return types