in pytorch-sample/scripts/script_utils.py [0:0]
def download_image(url, path): data = imread(url) imwrite(path / url.split("/")[-1], data)