def METHOD_NAME(self, incr):
    rate_limit_middleware = RatelimitMiddleware(sentinel.callback)
    test_endpoint = RateLimitedEndpoint.as_view()
    request = self.factory.get("/")
    request._view_path = "/"
    response = Mock(status_code=429)
    rate_limit_middleware.process_view(request, test_endpoint, [], {})
    self.middleware.process_response(request, response)
    incr.assert_called_with(
        "view.response",
        instance=request._view_path,
        tags={
            "method": "GET",
            "status_code": 429,
            "ui_request": False,
            "rate_limit_type": "fixed_window",
        },
        skip_internal=False,
    )