code: def _trainable_getter(sess):
      def _get(p, attr=None):
          return p.eval(sess)
  
      return _get
  
imports: import tensorflow
  import numpy
  from cntk.contrib import crosstalk
label_desc: Use image node_id 3 for calling a global function with example usage: _trainable_getter(sess) and returns: _get, p