code: def test_global_variable_saver_to_string(variable, name, shape):
      with tf.Session() as session:
          session.run(tf.global_variables_initializer())
          session.run(variable.assign(tf.ones(shape)))
  
          saver = GlobalVariableSaver("name")
          string = saver.to_string(session)
          arrays = pickle.loads(string)
          assert_arrays_ones_shape(arrays, shape, name)
  
file_path: coach/rl_coach/tests/test_global_variable_saver.py
imports: import random
  import pickle
  import pytest
  import tensorflow
  import numpy
  from rl_coach.architectures.tensorflow_components.savers import GlobalVariableSaver
label_desc: Use image node_id 8 for calling a global function with example usage: test_global_variable_saver_to_string(variable, name, shape) without return types