code: def get_job_links():
      run_id = os.environ["GITHUB_RUN_ID"]
      url = f"https://api.github.com/repos/huggingface/transformers/actions/runs/{run_id}/jobs?per_page=100"
      result = requests.get(url).json()
      jobs = {}
  
      try:
          jobs.update(
              {job["name"]: job["html_url"] for job in result["jobs"]}
          )
          pages_to_iterate_over = math.ceil(
              (result["total_count"] - 100) / 100
          )
  
          for i in range(pages_to_iterate_over):
              result = requests.get(url + f"&page={i + 2}").json()
              jobs.update(
                  {
                      job["name"]: job["html_url"]
                      for job in result["jobs"]
                  }
              )
  
          return jobs
      except Exception as e:
          print("Unknown error, could not fetch links.", e)
  
      return {}
  
imports: import collections
  import json
  import math
  import os
  import re
  import time
  from fnmatch import fnmatch
  from typing import Dict, List
  import requests
  from slack_sdk import WebClient
label_desc: Use image node_id 3 for calling a global function with example usage: get_job_links() and returns: dict, jobs