code: def test_global_variable_saver_from_arrays(variable, name, shape):
      with tf.Session() as session:
          session.run(tf.global_variables_initializer())
  
          saver = GlobalVariableSaver("name")
          saver.from_arrays(session, {name: np.ones(shape)})
          arrays = saver.to_arrays(session)
          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 7 for calling a global function with example usage: test_global_variable_saver_from_arrays(variable, name, shape) without return types