code: def build_req_wheels():
      """Builds requirement wheels"""
      if built_local():
          return
      print("Building requirements wheels...")
  
      # Get wheels from PyPI
      rc = subprocess.Popen(
          [
              sys.executable,
              "-m",
              "pip",
              "wheel",
              "-r",
              "requirements.txt",
              "--wheel-dir=" + PACKAGE_NAME + "/req_wheels",
          ],
          cwd=PROJ_PATH,
      ).wait()
  
      # Download wheels
      for wheelhouse, package, versions in DOWNLOAD_REQ_WHEELS:
          req_dl_success = False
          for version in versions:
              for whl in get_supported_wheels(package, version):
                  exitcodes = []
                  whl_url = wheelhouse + whl
                  sys.stdout.write(
                      "Trying to download... '" + whl_url + "'"
                  )
                  dl_path = os.path.join(
                      PACKAGE_NAME + "/req_wheels", whl
                  )
                  try:
                      urlretrieve(whl_url, dl_path)
                      zip_ref = zipfile.ZipFile(dl_path, "r")
                      req_dl_success = True
                      sys.stdout.write(" ...SUCCESS\n")
                  except BaseException:
                      if os.path.exists(dl_path):
                          os.remove(dl_path)
                      sys.stdout.write(" ...FAIL\n")
                      continue
                  sys.stdout.flush()
          # Try to get it from PyPI as last resort
          if not req_dl_success:
              rc2 = subprocess.Popen(
                  [
                      sys.executable,
                      "-m",
                      "pip",
                      "wheel",
                      package,
                      "--wheel-dir=" + PACKAGE_NAME + "/req_wheels",
                  ],
                  cwd=PROJ_PATH,
              ).wait()
  
      if rc:
          print("Failed to build requirements wheels!")
          pass
  
imports: from __future__ import print_function
  import fnmatch
  import hashlib
  import os
  import shutil
  import sys
  import subprocess
  import traceback
  import tempfile
  import zipfile
  import distutils.sysconfig
  from glob import glob
  from setuptools import find_packages
  from distutils.core import setup
  from setuptools.command.install import install
  from setuptools.command.egg_info import egg_info
  from setuptools import setup, Distribution
  from multiprocessing import Process
label_desc: Use image node_id 12 for calling a global function with example usage: build_req_wheels() without return types