code: def parse_TF_build_info():
      ret = OrderedDict()
      from tensorflow.python.platform import build_info
  
      try:
          for k, v in list(build_info.build_info.items()):
              if k == "cuda_version":
                  ret["TF built with CUDA"] = v
              elif k == "cudnn_version":
                  ret["TF built with CUDNN"] = v
              elif k == "cuda_compute_capabilities":
                  ret["TF compute capabilities"] = ",".join(
                      [k.replace("compute_", "") for k in v]
                  )
          return ret
      except AttributeError:
          pass
      try:
          ret["TF built with CUDA"] = build_info.cuda_version_number
          ret["TF built with CUDNN"] = build_info.cudnn_version_number
      except AttributeError:
          pass
      return ret
  
file_path: tensorpack/tensorpack/tfutils/collect_env.py
imports: import os
  import sys
  import psutil
  import tensorflow
  import numpy
  from collections import defaultdict, OrderedDict
  from tabulate import tabulate
  import tensorpack
  from ..compat import tfv1
  from ..utils.utils import find_library_full_path
  from ..utils.nvml import NVMLContext
  from ..libinfo import __git_version__
label_desc: Use image node_id 1 for calling a global function with example usage: parse_TF_build_info() and returns: ret, ret