code: def add_deprecation_headers(response: Response):
      """
      Add Deprecation HTTP Header Field.
  
      .. seealso:: IETF proposal for the header field
          `here <https://datatracker.ietf.org/doc/draft-dalal-deprecation-header/>`_.
      """
      response.headers["Deprecation"] = "true"
      doc_url = get_docs_url(
          "upgrading-to-2.html#migration-guide-from-experimental-api-to-stable-api-v1"
      )
      deprecation_link = (
          f'<{doc_url}>; rel="deprecation"; type="text/html"'
      )
      if "link" in response.headers:
          response.headers["Link"] += f", {deprecation_link}"
      else:
          response.headers["Link"] = f"{deprecation_link}"
  
      return response
  
imports: from __future__ import annotations
  import logging
  from functools import wraps
  from typing import TYPE_CHECKING, Callable, TypeVar, cast
  from flask import Blueprint, current_app, g, jsonify, request, url_for
  from airflow import models
  from airflow.api.common.experimental import delete_dag, pool, trigger_dag
  from airflow.api.common.experimental.get_code import get_code
  from airflow.api.common.experimental.get_dag_run_state import get_dag_run_state
  from airflow.api.common.experimental.get_dag_runs import get_dag_runs
  from airflow.api.common.experimental.get_lineage import get_lineage
  from airflow.api.common.experimental.get_task import get_task
  from airflow.api.common.experimental.get_task_instance import get_task_instance
  from airflow.exceptions import AirflowException
  from airflow.utils import timezone
  from airflow.utils.docs import get_docs_url
  from airflow.utils.strings import to_boolean
  from airflow.version import version
label_desc: Use image node_id 2 for calling a global function with example usage: add_deprecation_headers(response) and returns: response