def METHOD_NAME(items, limit=None, page=1):
    items = items or []
    if limit is None:
        return (items, None)
    paginated_items = PaginatedItems(items, page=page, limit=limit)
    return (paginated_items.items, paginated_items.next_page)