code: def get_paged_request(url, headers=None, **params):
      """get a full list, handling APIv3's paging"""
      results = []
      params.setdefault("per_page", 100)
      while True:
          if "?" in url:
              params = None
              print(f"fetching {url}", file=sys.stderr)
          else:
              print(f"fetching {url} with {params}", file=sys.stderr)
          response = requests.get(url, headers=headers, params=params)
          response.raise_for_status()
          results.extend(response.json())
          if "next" in response.links:
              url = response.links["next"]["url"]
          else:
              break
      return results
  
imports: import getpass
  import json
  import os
  import re
  import sys
  import requests
label_desc: Use image node_id 7 for calling a global function with example usage: get_paged_request(url, headers) and returns: results