code: def assert_deprecated(self, resp):
      assert "true" == resp.headers["Deprecation"]
      assert re.search(
          r"<.+/upgrading-to-2.html#migration-guide-from-experimental-api-to-stable-api-v1>; "
          'rel="deprecation"; type="text/html"',
          resp.headers["Link"],
      )
  
imports: from __future__ import annotations
  import json
  import os
  import re
  from datetime import timedelta
  from unittest import mock
  from urllib.parse import quote_plus
  import pytest
  from airflow import settings
  from airflow.api.common.experimental.trigger_dag import trigger_dag
  from airflow.models import DagBag, DagRun, Pool, TaskInstance
  from airflow.models.serialized_dag import SerializedDagModel
  from airflow.settings import Session
  from airflow.utils.timezone import datetime, parse, utcnow
  from airflow.version import version
  from tests.test_utils.db import clear_db_pools
label_desc: Use image node_id 2 for calling the TestBase obj's underlying member method code with example usage: obj.assert_deprecated(resp) without return types