Downloads a file from a URL if it not already in the cache.

Used in the notebooks

Used in the guide Used in the tutorials

By default the file at the url origin is downloaded to the cache_dir ~/.keras, placed in the cache_subdir datasets, and given the filename fname. The final location of a file example.txt would therefore be ~/.keras/datasets/ex