def download_data()

in mnist-vscode-docs-sample/prepare.py [0:0]


def download_data(url, filename):
    if not tf.gfile.Exists(filename):
        print('downloading ' + url)
        urllib.request.urlretrieve(url, filename = filename)
    else:
        print(filename + ' exists, using it')