code: def load(model, weights_path, sess):
      if sess is None:
          sess = tf.get_default_session()
          assert (
              sess is not None
          ), "The default session should be given."
  
      values = parse_weights(weights_path)
      sess.run(pretrained_initializer(model, values))
  
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 12 for calling a global function with example usage: load(model, weights_path, sess) without return types