code: def get_contributors(repo_owner, repo_name):
      url = f"https://api.github.com/repos/{repo_owner}/{repo_name}/stats/contributors"
      contributors = {}
  
      while url:
          response = requests.get(url)
  
          if response.status_code != 200:
              raise Exception(
                  f"Failed to retrieve contributors: {response.json()['message']}"
              )
  
          for contributor in response.json():
              contributions = contributor["weeks"]
              mod_lines = sum(
                  [week["d"] + week["a"] for week in contributions]
              )
              contributors[contributor["author"]["login"]] = mod_lines
  
          if "next" in response.links:
              url = response.links["next"]["url"]
          else:
              url = None
  
      return sorted(
          contributors.items(), key=operator.itemgetter(1), reverse=True
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_contributors(repo_owner, repo_name) and returns: sorted