Add a get_all_list_data utility function that uses a get_next generator ...

...function to retrieve all json data for methods that return a list and support pagination.  Include tests and function doc.
The method here looks good. One suggestion that I'd have regards the correct behavior should be if the function throw an error midway through the iteration. The semantics that we've got here say that the exception will be propagated up and the intermediate results lost. That may be the right way to go; an alternative could be to throw some kind of IterationException (or something) that has fields for the original exception thrown by the function, as well as a field for the result so far.

It's your call - consider the trade-off between the usefulness of an incomplete result vs. the experience for the developer (they'd have to understand a different error type and handle the partial failure case, but they could get enough useful information to get their job done), and the consistency of the SDK interface as a whole.

Whichever way you decide to go, could you be sure to document what the semantics are in the method doc string so that callers know what to expect?