code: def init(scopes, sess):
      if sess is None:
          sess = tf.get_default_session()
          assert (
              sess is not None
          ), "The default session should be given."
  
      if not isinstance(scopes, list):
          scopes = [scopes]
  
      for scope in scopes:
          sess.run(tf.variables_initializer(get_weights(scope)))
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow
  import warnings
  from contextlib import contextmanager
  from .version_utils import tf_later_than
label_desc: Use image node_id 18 for calling a global function with example usage: init(scopes, sess) without return types