code: def snapshot_to_checkpoint(volume, snapshot, folder_path):
      
      create_folder(folder_path)
  
      name = snapshot.getName()
      path = os.path.join(folder_path, '%s.qcow2' % name)
  
      process = launch_process(QEMU_IMG, "convert", "-f", "qcow2", "-o",
                               "backing_file=%s" % volume_backing_path(volume),
                               "-O", "qcow2", "-s", name,
                               volume_path(volume), path)
      collect_process_output(process)
  
      return path
docs: Turns a QEMU internal snapshot into a QCOW file.