def get_page_result(generator, marker, show_next_marker=None):
    pages = generator.by_page(continuation_token=marker)
    result = list_generator(pages=pages)
    if show_next_marker:
        next_marker = {'nextMarker': pages.continuation_token}
        result.append(next_marker)
    elif pages.continuation_token:
        logger.warning('Next Marker:')
        logger.warning(pages.continuation_token)
    return result
def get_page_result(generator, marker, show_next_marker=None):
    pages = generator.by_page(continuation_token=marker)
    result = list_generator(pages=pages)
    if show_next_marker:
        next_marker = {'nextMarker': pages.continuation_token}
        result.append(next_marker)
    elif pages.continuation_token:
        logger.warning('Next Marker:')
        logger.warning(pages.continuation_token)
    return result