code: def initialize_airflow_tests(request):
      """Helper that setups Airflow testing environment."""
      print(" AIRFLOW ".center(60, "="))
  
      # Setup test environment for breeze
      home = os.path.expanduser("~")
      airflow_home = os.environ.get("AIRFLOW_HOME") or os.path.join(
          home, "airflow"
      )
  
      print(f"Home of the user: {home}\nAirflow home {airflow_home}")
  
      # Initialize Airflow db if required
      lock_file = os.path.join(airflow_home, ".airflow_db_initialised")
      if not skip_db_tests:
          if request.config.option.db_init:
              print(
                  "Initializing the DB - forced with --with-db-init switch."
              )
              initial_db_init()
          elif not os.path.exists(lock_file):
              print(
                  "Initializing the DB - first time after entering the container.\n"
                  "You can force re-initialization the database by adding --with-db-init switch to run-tests."
              )
              initial_db_init()
              # Create pid file
              with open(lock_file, "w+"):
                  pass
          else:
              print(
                  "Skipping initializing of the DB as it was initialized already.\n"
                  "You can re-initialize the database by adding --with-db-init flag when running tests."
              )
      integration_kerberos = os.environ.get("INTEGRATION_KERBEROS")
      if integration_kerberos == "true":
          # Initialize kerberos
          kerberos = os.environ.get("KRB5_KTNAME")
          if kerberos:
              subprocess.check_call(
                  ["kinit", "-kt", kerberos, "bob@EXAMPLE.COM"]
              )
          else:
              print(
                  "Kerberos enabled! Please setup KRB5_KTNAME environment variable"
              )
              sys.exit(1)
  
imports: from __future__ import annotations
  import json
  import os
  import platform
  import subprocess
  import sys
  import warnings
  from contextlib import ExitStack, suppress
  from datetime import datetime, timedelta
  from pathlib import Path
  from typing import TYPE_CHECKING
  import pytest
  import time_machine
  from itsdangerous import URLSafeSerializer
label_desc: Use image node_id 8 for calling a global function with example usage: initialize_airflow_tests(request) without return types