code: def get_nvidia_driver_version():
      smi = get_nvidia_smi()
      if get_platform() == "darwin":
          cmd = "kextstat | grep -i cuda"
          return run_and_parse_first_match(
              cmd, r"com[.]nvidia[.]CUDA [(](.*?)[)]"
          )
  
      return run_and_parse_first_match(smi, r"Driver Version: (.*?) ")
  
imports: import locale
  import os
  import re
  import subprocess
  import sys
label_desc: Use image node_id 17 for calling a global function with example usage: get_nvidia_driver_version() and returns: run_and_parse_first_match, run_and_parse_first_match