code: def get_training_mode():
      """get_training_mode.
  
      Returns variable in-use to set training mode.
  
      Returns:
          A `Variable`, the training mode holder.
  
      """
      init_training_mode()
      coll = tf.get_collection("is_training")
      return coll[0]
  
imports: from __future__ import division, print_function, absolute_import
  import tensorflow.compat.v1
  from .variables import variable
label_desc: Use image node_id 3 for calling a global function with example usage: get_training_mode() and returns: coll