code: def import_local_settings():
      """Import airflow_local_settings.py files to allow overriding any configs in settings.py file."""
      try:
          import airflow_local_settings
      except ModuleNotFoundError as e:
          if e.name == "airflow_local_settings":
              log.debug(
                  "No airflow_local_settings to import.", exc_info=True
              )
          else:
              log.critical(
                  "Failed to import airflow_local_settings due to a transitive module not found error.",
                  exc_info=True,
              )
              raise
      except ImportError:
          log.critical(
              "Failed to import airflow_local_settings.", exc_info=True
          )
          raise
      else:
          if hasattr(airflow_local_settings, "__all__"):
              names = set(airflow_local_settings.__all__)
          else:
              names = {
                  n
                  for n in airflow_local_settings.__dict__
                  if not n.startswith("__")
              }
  
          if "policy" in names and "task_policy" not in names:
              warnings.warn(
                  "Using `policy` in airflow_local_settings.py is deprecated. "
                  "Please rename your `policy` to `task_policy`.",
                  RemovedInAirflow3Warning,
                  stacklevel=2,
              )
              setattr(
                  airflow_local_settings,
                  "task_policy",
                  airflow_local_settings.policy,
              )
              names.remove("policy")
  
          plugin_functions = policies.make_plugin_from_local_settings(
              POLICY_PLUGIN_MANAGER, airflow_local_settings, names
          )
  
          # If we have already handled a function by adding it to the plugin,
          # then don't clobber the global function
          for name in names - plugin_functions:
              globals()[name] = getattr(airflow_local_settings, name)
  
          if (
              POLICY_PLUGIN_MANAGER.hook.task_instance_mutation_hook.get_hookimpls()
          ):
              task_instance_mutation_hook.is_noop = False
  
          log.info(
              "Loaded airflow_local_settings from %s .",
              airflow_local_settings.__file__,
          )
  
imports: from __future__ import annotations
  import atexit
  import functools
  import json
  import logging
  import os
  import sys
  import warnings
  from typing import TYPE_CHECKING, Any, Callable
  import pluggy
  from sqlalchemy import create_engine, exc, text
  from sqlalchemy.orm import scoped_session, sessionmaker
  from sqlalchemy.pool import NullPool
  from airflow import policies
  from airflow.configuration import AIRFLOW_HOME, WEBSERVER_CONFIG, conf
  from airflow.exceptions import RemovedInAirflow3Warning
  from airflow.executors import executor_constants
  from airflow.logging_config import configure_logging
  from airflow.utils.orm_event_handlers import setup_event_handlers
  from airflow.utils.state import State
  from airflow.utils.timezone import local_timezone, parse_timezone, utc
label_desc: Use image node_id 22 for calling a global function with example usage: import_local_settings() without return types