code: def test_doc_urls(admin_client, monkeypatch):
      # Mocking this way is tying the test closer to the implementation much more than I'd like. :shrug:
      from airflow.www.views import AirflowBaseView
  
      monkeypatch.setitem(
          AirflowBaseView.extra_args,
          "get_docs_url",
          lambda _: "!!DOCS_URL!!",
      )
      resp = admin_client.get("/", follow_redirects=True)
  
      check_content_in_response("!!DOCS_URL!!", resp)
      check_content_in_response("/api/v1/ui", resp)
  
imports: from __future__ import annotations
  import datetime
  import json
  import pytest
  from airflow.jobs.job import Job
  from airflow.jobs.scheduler_job_runner import SchedulerJobRunner
  from airflow.utils import timezone
  from airflow.utils.session import create_session
  from airflow.www import app
  from tests.test_utils.asserts import assert_queries_count
  from tests.test_utils.config import conf_vars
  from tests.test_utils.www import check_content_in_response, check_content_not_in_response
label_desc: Use image node_id 3 for calling a global function with example usage: test_doc_urls(admin_client, monkeypatch) without return types