code: def copy_checkpoint_to_gdrive(run_name="run1", copy_folder=False):
      """Copies the checkpoint folder to a mounted Google Drive."""
      is_mounted()
  
      checkpoint_folder = os.path.join("checkpoint", run_name)
  
      if copy_folder:
          shutil.copytree(
              checkpoint_folder,
              "/content/drive/MyDrive/" + checkpoint_folder,
          )
      else:
          file_path = get_tarfile_name(checkpoint_folder)
  
          # Reference: https://stackoverflow.com/a/17081026
          with tarfile.open(file_path, "w") as tar:
              tar.add(checkpoint_folder)
  
          shutil.copyfile(
              file_path, "/content/drive/MyDrive/" + file_path
          )
  
imports: import tarfile
  import os
  import json
  import requests
  import sys
  import shutil
  import re
  from tqdm import tqdm, trange
  import numpy
  import tensorflow
  from tensorflow.core.protobuf import rewriter_config_pb2
  from tensorflow.python.client import device_lib
  import time
  from datetime import datetime
  import csv
  import argparse
  from sys import exit
  import codecs
  from gpt_2_simple.src import model, sample, encoder, memory_saving_gradients
  from gpt_2_simple.src.load_dataset import load_dataset, Sampler
  from gpt_2_simple.src.accumulate import AccumulatingOptimizer
label_desc: Use image node_id 13 for calling a global function with example usage: copy_checkpoint_to_gdrive(run_name, copy_folder) without return types