def METHOD_NAME(self, queryset, request, view, count=None):
    # pylint: disable=attribute-defined-outside-init
    page_size = self.get_page_size(request)
    if not page_size:
        return None
    paginator = self.django_paginator_class(
        queryset, page_size, count_override=count
    )
    page_number = request.query_params.get(self.page_query_param, 1)
    if page_number in self.last_page_strings:
        page_number = paginator.num_pages
    try:
        self.page = paginator.page(page_number)
    except InvalidPage as exc:
        msg = self.invalid_page_message.format(
            page_number=page_number, message=str(exc)
        )
        raise NotFound(msg) from exc
    if paginator.num_pages > 1 and self.template is not None:
        self.display_page_controls = True
    self.request = request
    return list(self.page)