Marshmallow Interview Question

Python -> write a function that gets all data from an api using cursor pagination and prints the output in jsonlines