code: def get_versions():
      cp = subprocess.run(
          [sys.executable, "-c", NUMBA_CHECK_VERSION_CMD],
          capture_output=True,
      )
      if cp.returncode:
          msg = (
              f"Error getting driver and runtime versions:\n\nstdout:\n\n"
              f"{cp.stdout.decode()}\n\nstderr:\n\n{cp.stderr.decode()}\n\n"
              "Not patching Numba"
          )
          warnings.warn(msg, UserWarning)
          return NO_DRIVER
  
      versions = [int(s) for s in cp.stdout.strip().split()]
      driver_version = tuple(versions[:2])
      runtime_version = tuple(versions[2:])
  
      return driver_version, runtime_version
  
imports: import math
  import os
  import subprocess
  import sys
  import warnings
label_desc: Use image node_id 2 for calling a global function with example usage: get_versions() and returns: driver_version,  runtime_version, NO_DRIVER