code: def build_wheel(
      sources_path: str,
      output_path: str,
      package_name: str,
      git_hash: str = "",
  ) -> None:
      """Builds a wheel in `output_path` using the source tree in `sources_path`."""
      env = dict(os.environ)
      if git_hash:
          env["JAX_GIT_HASH"] = git_hash
      subprocess.run(
          [sys.executable, "-m", "build", "-n", "-w"],
          check=True,
          cwd=sources_path,
          env=env,
      )
      for wheel in glob.glob(
          os.path.join(sources_path, "dist", "*.whl")
      ):
          output_file = os.path.join(
              output_path, os.path.basename(wheel)
          )
          sys.stderr.write(f"Output wheel: {output_file}\n\n")
          sys.stderr.write(
              f"To install the newly-built {package_name} wheel, run:\n"
          )
          sys.stderr.write(
              f"  pip install {output_file} --force-reinstall\n\n"
          )
          shutil.copy(wheel, output_path)
  
file_path: jax/jax/tools/build_utils.py
imports: from __future__ import annotations
  import os
  import pathlib
  import platform
  import shutil
  import sys
  import subprocess
  import glob
  from collections.abc import Sequence
label_desc: Use image node_id 4 for calling a global function with example usage: build_wheel(sources_path, output_path, package_name, git_hash) without return types