code: def check_numpy_version(python_bin_path):
      version = shell(
          [
              python_bin_path,
              "-c",
              "import numpy as np; print(np.__version__)",
          ]
      )
      numpy_version = tuple(map(int, version.split(".")[:2]))
      if numpy_version < (1, 22):
          print(
              "ERROR: JAX requires NumPy 1.22 or newer, found "
              + version
              + "."
          )
          sys.exit(-1)
      return version
  
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 7 for calling a global function with example usage: check_numpy_version(python_bin_path) and returns: version