def METHOD_NAME(self, request: Request, organization) -> Response:
    query_params = MultiValueDict(request.GET)
    fields = set(query_params.getlist("field", []))
    anr_fields = {"anr_rate()", "foreground_anr_rate()"}
    if fields.intersection(anr_fields) and not features.has(
        "organizations:anr-rate", organization, actor=request.user
    ):
        return Response(
            {"detail": "This organization does not have the ANR rate feature"}, status=400
        )
    def data_fn(offset: int, limit: int):
        with self.handle_query_errors():
            with sentry_sdk.start_span(
                op="sessions.endpoint", description="build_sessions_query"
            ):
                request_limit = None
                if request.GET.METHOD_NAME("per_page") is not None:
                    request_limit = limit
                request_offset = None
                if request.GET.METHOD_NAME("cursor") is not None:
                    request_offset = offset
                query = self.build_sessions_query(
                    request, organization, offset=request_offset, limit=request_limit
                )
            return release_health.backend.run_sessions_query(
                organization.id, query, span_op="sessions.endpoint"
            )
    return self.paginate(
        request,
        paginator=SessionsDataSeriesPaginator(data_fn=data_fn),
        default_per_page=SNUBA_LIMIT,
        max_per_page=SNUBA_LIMIT,
    )