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