code: def get_value(var, session=None):
      """get_value.
  
      Get a variable's value. If no session provided, use default one.
  
      Arguments:
          var: `Variable`. The variable to get value from.
          session: `Session`. The session to run the op. Default: the default
              session.
  
      Returns:
          The variable's value.
  
      """
      if not session:
          session = tf.get_default_session()
      return var.eval(session)
  
file_path: tflearn/tflearn/variables.py
imports: from __future__ import division, print_function, absolute_import
  import tensorflow.compat.v1
  import tflearn
  from tflearn.vendor.arg_scope import add_arg_scope
label_desc: Use image node_id 6 for calling a global function with example usage: get_value(var, session) and returns: var