code: def test_swagger_ui_oauth2_redirect():
      response = client.get(swagger_ui_oauth2_redirect_url)
      assert response.status_code == 200, response.text
      assert (
          response.headers["content-type"] == "text/html; charset=utf-8"
      )
      assert "window.opener.swaggerUIRedirectOauth2" in response.text
  
imports: from fastapi import FastAPI
  from fastapi.testclient import TestClient
label_desc: Use image node_id 2 for calling a global function with example usage: test_swagger_ui_oauth2_redirect() without return types