code: def main(unused_argv):
      if FLAGS.checkpoint is None or not FLAGS.checkpoint:
          raise ValueError(
              "Need to provide a path to checkpoint directory."
          )
      if FLAGS.destination is None or not FLAGS.destination:
          raise ValueError(
              "Need to provide a destination directory for the SavedModel."
          )
      export(FLAGS.checkpoint, FLAGS.destination, FLAGS.use_tf_sampling)
      tf.logging.info("Exported SavedModel to %s.", FLAGS.destination)
  
imports: from magenta.models.coconet import lib_graph
  from magenta.models.coconet import lib_saved_model
  from magenta.models.coconet import lib_tfsampling
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling a global function with example usage: main(unused_argv) without return types