code: def get_definitions(cudnn_version=None):
      """
      Return cuDNN definitions to be used by Theano for the given cuDNN version.
  
      ``cudnn_version`` must be None or an integer
      (typically the version returned by :func:`theano.gpuarray.dnn.version`).
      if None, return definitions for the  most recent supported cuDNN version.
  
      """
      if cudnn_version is not None:
          if cudnn_version // 1000 == 5:
              return CuDNNV51()
          if cudnn_version // 1000 == 6:
              return CuDNNV6()
      # By default, we use definitions for the last supported cuDNN version.
      return CuDNNV7()
  
file_path: Theano/theano/gpuarray/cudnn_defs.py
imports: from __future__ import absolute_import, print_function, division
  from theano.gof import CEnumType
label_desc: Use image node_id 5 for calling a global function with example usage: get_definitions(cudnn_version) and returns: CuDNNV7, CuDNNV51, CuDNNV6