code: def _load_checkpoint(sess, checkpoint):
      """Loads a checkpoint file into the session."""
      model_saver = tf.train.Saver(tf.global_variables())
      checkpoint = os.path.expanduser(checkpoint)
      if tf.gfile.IsDirectory(checkpoint):
          checkpoint = tf.train.latest_checkpoint(checkpoint)
          tf.logging.info(
              "loading latest checkpoint file: {}".format(checkpoint)
          )
      model_saver.restore(sess, checkpoint)
  
file_path: magenta/magenta/models/image_stylization/image_stylization_transform.py
imports: import ast
  import os
  from magenta.models.image_stylization import image_utils
  from magenta.models.image_stylization import model
  from magenta.models.image_stylization import ops
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling a global function with example usage: _load_checkpoint(sess, checkpoint) without return types