code: def test_swagger_ui_oauth2_redirect_html(client: TestClient):
      response = client.get("/docs/oauth2-redirect")
      assert response.status_code == 200, response.text
      assert "window.opener.swaggerUIRedirectOauth2" in response.text
  
file_path: fastapi/tests/test_tutorial/test_custom_docs_ui/test_tutorial002.py
imports: import os
  from pathlib import Path
  import pytest
  from fastapi.testclient import TestClient
label_desc: Use image node_id 3 for calling a global function with example usage: test_swagger_ui_oauth2_redirect_html(client) without return types