code: def construct_old_to_new_tuple_mapping(
      file_name: Path,
  ) -> list[tuple[str, str]]:
      old_to_new_tuples: list[tuple[str, str]] = []
      with file_name.open() as f:
          for line in f:
              line = line.strip()
              if line and not line.startswith("#"):
                  old_path, new_path = line.split(" ")
                  old_path = old_path.replace(".rst", ".html")
                  new_path = new_path.replace(".rst", ".html")
                  old_to_new_tuples.append((old_path, new_path))
      return old_to_new_tuples
  
file_path: airflow/dev/breeze/src/airflow_breeze/utils/add_back_references.py
imports: from __future__ import annotations
  import os
  import re
  import tempfile
  from pathlib import Path
  from urllib.error import URLError
  from urllib.request import urlopen
  from airflow_breeze.utils.console import get_console
label_desc: Use image node_id 2 for calling a global function with example usage: construct_old_to_new_tuple_mapping(file_name) and returns: old_to_new_tuples