code: def get_cudnn_version():
      """Retrieves the version of cuDNN library detected.
  
      Returns:
        String that is the version of cuDNN library detected.
          e.g. '7.5.0'
      """
      key = "cudnn_ver"
      cmds = cmds_all[PLATFORM.lower()][key]
      out, err = run_shell_cmd(cmds[0])
      if err and FLAGS.debug:
          print("Error in finding `cudnn.h`:\n %s" % str(err))
  
      if len(out.split(b" ")) > 1:
          cmd = cmds[0] + " | " + cmds[1]
          out_re, err_re = run_shell_cmd(cmd)
          if err_re and FLAGS.debug:
              print(
                  "Error in detecting cuDNN version:\n %s" % str(err_re)
              )
  
          return out_re.strip(b"\n")
      else:
          return
  
imports: import collections
  import json
  import re
  import subprocess
  import sys
  from absl import app
  from absl import flags
  from tensorflow.tools.tensorflow_builder.config_detector.data import cuda_compute_capability
label_desc: Use image node_id 12 for calling a global function with example usage: get_cudnn_version() and returns: out_re