code: def get_tf_version():
      try:
          import pkg_resources
  
          s = pkg_resources.get_distribution("tensorflow-gpu").version
      except pkg_resources.DistributionNotFound:
          # pkg_resources.get_distribution doesn't work well with conda installed packages
          try:
              import tensorflow as tf
  
              s = tf.__version__
          except ModuleNotFoundError:
              return ""
      version = re.search(r"(\d+.\d+).\d+", s).group(1)
      return version
  
file_path: DALI/dali_tf_plugin/dali_tf_plugin_utils.py
imports: import subprocess
  import os
  import re
  import sys
  import fnmatch
  from distutils.version import StrictVersion
label_desc: Use image node_id 4 for calling a global function with example usage: get_tf_version() and returns: version, str