def copy_most_recent_model():
    " Copy the most recent model to the 'models/' directory "
    best_model = get_most_recent_model()
    if best_model:
        print('Warm-starting from {}'.format(best_model), end='', flush=True)
        for blob in bucket.list_blobs(prefix=best_model):
            dest_file = 'models/{}/{}'.format(basename(best_model), basename(blob.name))
            if (not blob_already_exists(blob, dest_file)):
                if isfile(dest_file):
                    makedirs(dirname(dest_file), exist_ok=True)
                    with open(dest_file, 'wb') as file:
                        print('.', end='', flush=True)
                        blob.download_to_file(file)
        print()
    return best_model
Copy the most recent model to the 'models/' directory
def copy_most_recent_model():
    "  "
    best_model = get_most_recent_model()
    if best_model:
        print('Warm-starting from {}'.format(best_model), end=, flush=True)
        for blob in bucket.list_blobs(prefix=best_model):
            dest_file = 'models/{}/{}'.format(basename(best_model), basename(blob.name))
            if (not blob_already_exists(blob, dest_file)):
                if isfile(dest_file):
                    makedirs(dirname(dest_file), exist_ok=True)
                    with open(dest_file, 'wb') as file:
                        print('.', end=, flush=True)
                        blob.download_to_file(file)
        print()
    return best_model