code: def get_preferred_mirrors():
      mirror_urls = []
      for _ in range(3):
          try:
              response = urllib.request.urlopen(
                  "https://www.apache.org/dyn/closer.lua?preferred=true"
              )
              mirror_urls.append(response.read().decode("utf-8"))
          except Exception:
              # If we can't get a mirror URL, skip it. No retry.
              pass
  
      default_sites = [
          "https://dlcdn.apache.org/",
          "https://archive.apache.org/dist",
          "https://dist.apache.org/repos/dist/release",
      ]
      return list(set(mirror_urls)) + [
          x for x in default_sites if x not in mirror_urls
      ]
  
file_path: spark/python/pyspark/install.py
imports: import os
  import re
  import tarfile
  import traceback
  import urllib.request
  from shutil import rmtree
label_desc: Use image node_id 5 for calling a global function with example usage: get_preferred_mirrors() and returns: unknown