code: def variables_save(filename, variables):
      """Saves structure of `tf.Variable`s to `filename`."""
      if not tf.executing_eagerly():
          raise ValueError("Can only `save` while in eager mode.")
      np.savez_compressed(
          filename, *[v.numpy() for v in tf.nest.flatten(variables)]
      )
  
imports: import collections
  import contextlib
  import functools
  import sys
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import tensorshape_util
label_desc: Use image node_id 10 for calling a global function with example usage: variables_save(filename, variables) without return types