code: def get_artifacts_links(worflow_run_id):
      """Get all artifact links from a workflow run"""
  
      url = f"https://api.github.com/repos/huggingface/transformers/actions/runs/{worflow_run_id}/artifacts?per_page=100"
      result = requests.get(url).json()
      artifacts = {}
  
      try:
          artifacts.update(
              {
                  artifact["name"]: artifact["archive_download_url"]
                  for artifact in result["artifacts"]
              }
          )
          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()
              artifacts.update(
                  {
                      artifact["name"]: artifact["archive_download_url"]
                      for artifact in result["artifacts"]
                  }
              )
  
          return artifacts
      except Exception as e:
          print("Unknown error, could not fetch links.", e)
  
      return {}
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/utils/get_ci_error_statistics.py
imports: import argparse
  import json
  import math
  import os
  import subprocess
  import time
  import zipfile
  from collections import Counter
  import requests
label_desc: Use image node_id 2 for calling a global function with example usage: get_artifacts_links(worflow_run_id) and returns: dict, artifacts