message: Change ndimage.imread to imageio.imread.
  Scipy will not support imread from 1.0.0 as its document says:
  Change to imageio.imread and add its correspond exception.
diff: "# These are all the modules we'll be using later. Make sure you can import them\n",
  "# before proceeding further.\n",
  "from __future__ import print_function\n",
  + "import imageio\n",
  "import matplotlib.pyplot as plt\n",
  "import numpy as np\n",
  "import os\n",
  "import sys\n",
  "import tarfile\n",
  "from IPython.display import display, Image\n",
  - "from scipy import ndimage\n",
  "from sklearn.linear_model import LogisticRegression\n",
  "from six.moves.urllib.request import urlretrieve\n",
  "from six.moves import cPickle as pickle\n",
  " for image in image_files:\n",
  " image_file = os.path.join(folder, image)\n",
  " try:\n",
  - " image_data = (ndimage.imread(image_file).astype(float) - \n",
  + " image_data = (imageio.imread(image_file).astype(float) - \n",
  " pixel_depth / 2) / pixel_depth\n",
  " if image_data.shape != (image_size, image_size):\n",
  " raise Exception('Unexpected image shape: %s' % str(image_data.shape))\n",
  " dataset[num_images, :, :] = image_data\n",
  " num_images = num_images + 1\n",
  - " except IOError as e:\n",
  + " except (IOError, ValueError) as e:\n",
  " print('Could not read:', image_file, ':', e, '- it\\'s ok, skipping.')\n",
  " \n",
  " dataset = dataset[0:num_images, :, :]\n",
  