code: def check_package_is_installed(
      python_bin_path, python_version, package
  ):
      args = [python_bin_path]
      if python_version >= (3, 11):
          args.append("-P")  # Don't include the current directory.
      args += ["-c", f"import {package}"]
      try:
          shell(args)
      except:
          print(
              f"ERROR: jaxlib build requires package '{package}' to be installed."
          )
          sys.exit(-1)
  
imports: import argparse
  import collections
  import hashlib
  import os
  import platform
  import re
  import shutil
  import stat
  import subprocess
  import sys
  import textwrap
  import urllib.request
  import logging
label_desc: Use image node_id 6 for calling a global function with example usage: check_package_is_installed(python_bin_path, python_version, package) without return types