code: def test_swagger_ui_oauth_redirect_decorators(app, client):
      def auth_decorator(f):
          def wrapper(*args, **kwargs):
              abort(401)
              return f(*args, **kwargs)
  
          return wrapper
  
      app.config["SWAGGER_UI_OAUTH_REDIRECT_DECORATORS"] = [
          auth_decorator
      ]
  
      rv = client.get("/openapi.json")
      assert rv.status_code == 200
  
      rv = client.get("/docs")
      assert rv.status_code == 200
  
      rv = client.get("/docs/oauth2-redirect")
      assert rv.status_code == 401
  
imports: import pytest
  from apispec import BasePlugin
  from flask import Blueprint
  from flask.views import MethodView
  from openapi_spec_validator import validate_spec
  from .schemas import Bar
  from .schemas import Foo
  from .schemas import Pagination
  from apiflask import APIBlueprint
  from apiflask import APIFlask
  from apiflask import Schema
  from apiflask.exceptions import abort
  from apiflask.fields import Integer
  from apiflask.fields import String
label_desc: Use image node_id 18 for calling a global function with example usage: test_swagger_ui_oauth_redirect_decorators(app, client) and returns: wrapper, f