code: def verify_mac_libraries_dont_reference_chkstack():
      """Verifies that xla_extension.so doesn't depend on ____chkstk_darwin.
  
      We don't entirely know why this happens, but in some build environments
      we seem to target the wrong Mac OS version.
      https://github.com/google/jax/issues/3867
  
      This check makes sure we don't release wheels that have this dependency.
      """
      if not _is_mac():
          return
      nm = subprocess.run(
          ["nm", "-g", r.Rlocation("xla/xla/python/xla_extension.so")],
          capture_output=True,
          text=True,
          check=False,
      )
      if nm.returncode != 0:
          raise RuntimeError(
              f"nm process failed: {nm.stdout} {nm.stderr}"
          )
      if "____chkstk_darwin" in nm.stdout:
          raise RuntimeError(
              "Mac wheel incorrectly depends on symbol ____chkstk_darwin, which "
              "means that it isn't compatible with older MacOS versions."
          )
  
file_path: jax/jaxlib/tools/build_wheel.py
imports: import argparse
  import functools
  import os
  import pathlib
  import platform
  import re
  import subprocess
  import tempfile
  from bazel_tools.tools.python.runfiles import runfiles
  from jax.tools import build_utils
label_desc: Use image node_id 5 for calling a global function with example usage: verify_mac_libraries_dont_reference_chkstack() without return types