code: def initialize_global_variables(sess):
      """Initialize the global variables of TensorFlow.
  
      Run ``sess.run(tf.global_variables_initializer())`` for TF 0.12+ or
      ``sess.run(tf.initialize_all_variables())`` for TF 0.11.
  
      Parameters
      ----------
      sess : Session
          TensorFlow session.
  
      """
      if sess is None:
          raise AssertionError("The session must be defined")
  
      sess.run(tf.compat.v1.global_variables_initializer())
  
imports: import numpy
  import tensorflow
  from tensorflow.python.ops.rnn_cell import LSTMStateTuple
  import tensorlayer
  from tensorlayer import logging
  from tensorlayer.decorators import deprecated, deprecated_alias
label_desc: Use image node_id 8 for calling a global function with example usage: initialize_global_variables(sess) without return types