def METHOD_NAME(no_warnings):
    # https://mrin9.github.io/RapiDoc/api.html#vendor-extensions
    # https://mrin9.github.io/RapiDoc/examples/oauth-vendor-extension.html#overview
    # https://redoc.ly/docs/api-reference-docs/specification-extensions/x-default-clientid/
    from oauth2_provider.contrib.rest_framework import OAuth2Authentication
    class CustomOAuth2Authentication(OAuth2Authentication):
        pass
    class CustomOAuthToolkitScheme(DjangoOAuthToolkitScheme):
        target_class = CustomOAuth2Authentication
        def get_security_definition(self, auto_schema):
            return {
                **super().get_security_definition(auto_schema),
                'x-client-id': 'my-client-id',
                'x-client-secret': 'my-client-secret',
            }
    @extend_schema(request=None, responses=None)
    @api_view(['GET'])
    @authentication_classes([CustomOAuth2Authentication])
    def view_func(request, format=None):
        pass  # pragma: no cover
    schema = generate_schema('x', view_function=view_func)
    oauth2 = schema['components']['securitySchemes']['oauth2']
    assert oauth2['x-client-id'] == 'my-client-id'
    assert oauth2['x-client-secret'] == 'my-client-secret'