code: def save_model(sess, model_save_path, global_step):
      saver = tf.train.Saver(tf.global_variables())
      checkpoint_path = os.path.join(model_save_path, "vector")
      tf.logging.info("saving model %s.", checkpoint_path)
      tf.logging.info("global_step %i.", global_step)
      saver.save(sess, checkpoint_path, global_step=global_step)
  
imports: import json
  import os
  import time
  import zipfile
  from magenta.models.sketch_rnn import model
  from magenta.models.sketch_rnn import utils
  import numpy
  import requests
  import six
  from six.moves.urllib.request import urlretrieve
  import tensorflow.compat.v1
label_desc: Use image node_id 8 for calling a global function with example usage: save_model(sess, model_save_path, global_step) without return types