code: def get_gpu_info(run_lambda):
      if get_platform() == "darwin":
          if TF_AVAILABLE and any(
              tf.config.list_physical_devices("GPU")
          ):
              return tf.config.list_physical_devices("GPU")[0].name
          return None
      smi = get_nvidia_smi()
      uuid_regex = re.compile(r" \(UUID: .+?\)")
      rc, out, _ = run_lambda(smi + " -L")
      if rc != 0:
          return None
      # Anonymize GPUs by removing their UUID
      return re.sub(uuid_regex, "", out)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import locale
  import os
  import re
  import subprocess
  import sys
  from collections import namedtuple
label_desc: Use image node_id 5 for calling a global function with example usage: get_gpu_info(run_lambda) and returns: re, None, None, tf