def METHOD_NAME(self, path, cursor=None):
    while True:
        body = {"limit": self.batch_request_limit}
        if cursor:
            body["cursor"] = cursor
        response = self.send_request(path, 'POST', json=body)
        yield from response.get("devices", [])
        more_to_follow = response.get("more_to_follow", False)
        cursor = response.get("cursor")
        if not more_to_follow:
            return cursor