We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
scipy.misc.imread() replaced by scipy.imageio.imread() in v1.2
`scipy.misc.imread()` was deprecatd in SciPy 1.0 & replaced in SciPy 1.2 by `scipy.imageio.imread()`

https://docs.scipy.org/doc/scipy-1.2.1/reference/generated/scipy.misc.imread.html

This is causing failures in CircleCI. 

I will work on this once PR  #2076 doctest problem has been addressed, since we need this issue to be resolved before it can be merged. Intended today.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `examples/02_decoding/plot_haxby_stimuli.py`
Content:
```
1 """
2 Show stimuli of Haxby et al. dataset
3 ===============================================================================
4 
5 In this script we plot an overview of the stimuli used in "Distributed
6 and Overlapping Representations of Faces and Objects in Ventral Temporal
7 Cortex" (Science 2001)
8 """
9 
10 from scipy.misc import imread
11 import matplotlib.pyplot as plt
12 
13 from nilearn import datasets
14 from nilearn.plotting import show
15 
16 haxby_dataset = datasets.fetch_haxby(subjects=[], fetch_stimuli=True)
17 stimulus_information = haxby_dataset.stimuli
18 
19 for stim_type in sorted(stimulus_information.keys()):
20     if stim_type == b'controls':
21         # skip control images, there are too many
22         continue
23 
24     file_names = stimulus_information[stim_type]
25 
26     plt.figure()
27     for i in range(48):
28         plt.subplot(6, 8, i + 1)
29         try:
30             plt.imshow(imread(file_names[i]), cmap=plt.cm.gray)
31         except:
32             # just go to the next one if the file is not present
33             pass
34         plt.axis("off")
35     plt.suptitle(stim_type)
36 
37 show()
38
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/examples/02_decoding/plot_haxby_stimuli.py b/examples/02_decoding/plot_haxby_stimuli.py
--- a/examples/02_decoding/plot_haxby_stimuli.py
+++ b/examples/02_decoding/plot_haxby_stimuli.py
@@ -7,7 +7,6 @@
 Cortex" (Science 2001)
 """
 
-from scipy.misc import imread
 import matplotlib.pyplot as plt
 
 from nilearn import datasets
@@ -16,22 +15,19 @@
 haxby_dataset = datasets.fetch_haxby(subjects=[], fetch_stimuli=True)
 stimulus_information = haxby_dataset.stimuli
 
-for stim_type in sorted(stimulus_information.keys()):
-    if stim_type == b'controls':
-        # skip control images, there are too many
-        continue
-
-    file_names = stimulus_information[stim_type]
-
-    plt.figure()
-    for i in range(48):
-        plt.subplot(6, 8, i + 1)
-        try:
-            plt.imshow(imread(file_names[i]), cmap=plt.cm.gray)
-        except:
-            # just go to the next one if the file is not present
-            pass
-        plt.axis("off")
-    plt.suptitle(stim_type)
+for stim_type in stimulus_information:
+    # skip control images, there are too many
+    if stim_type != 'controls':
+
+        file_names = stimulus_information[stim_type]
+
+        fig, axes = plt.subplots(6, 8)
+        fig.suptitle(stim_type)
+
+        for img_path, ax in zip(file_names, axes.ravel()):
+            ax.imshow(plt.imread(img_path), cmap=plt.cm.gray)
+
+        for ax in axes.ravel():
+            ax.axis("off")
 
 show()

{"golden_diff": "diff --git a/examples/02_decoding/plot_haxby_stimuli.py b/examples/02_decoding/plot_haxby_stimuli.py\n--- a/examples/02_decoding/plot_haxby_stimuli.py\n+++ b/examples/02_decoding/plot_haxby_stimuli.py\n@@ -7,7 +7,6 @@\n Cortex\" (Science 2001)\n \"\"\"\n \n-from scipy.misc import imread\n import matplotlib.pyplot as plt\n \n from nilearn import datasets\n@@ -16,22 +15,19 @@\n haxby_dataset = datasets.fetch_haxby(subjects=[], fetch_stimuli=True)\n stimulus_information = haxby_dataset.stimuli\n \n-for stim_type in sorted(stimulus_information.keys()):\n-    if stim_type == b'controls':\n-        # skip control images, there are too many\n-        continue\n-\n-    file_names = stimulus_information[stim_type]\n-\n-    plt.figure()\n-    for i in range(48):\n-        plt.subplot(6, 8, i + 1)\n-        try:\n-            plt.imshow(imread(file_names[i]), cmap=plt.cm.gray)\n-        except:\n-            # just go to the next one if the file is not present\n-            pass\n-        plt.axis(\"off\")\n-    plt.suptitle(stim_type)\n+for stim_type in stimulus_information:\n+    # skip control images, there are too many\n+    if stim_type != 'controls':\n+\n+        file_names = stimulus_information[stim_type]\n+\n+        fig, axes = plt.subplots(6, 8)\n+        fig.suptitle(stim_type)\n+\n+        for img_path, ax in zip(file_names, axes.ravel()):\n+            ax.imshow(plt.imread(img_path), cmap=plt.cm.gray)\n+\n+        for ax in axes.ravel():\n+            ax.axis(\"off\")\n \n show()\n", "issue": "scipy.misc.imread() replaced by scipy.imageio.imread() in v1.2\n`scipy.misc.imread()` was deprecatd in SciPy 1.0 & replaced in SciPy 1.2 by `scipy.imageio.imread()`\r\n\r\nhttps://docs.scipy.org/doc/scipy-1.2.1/reference/generated/scipy.misc.imread.html\r\n\r\nThis is causing failures in CircleCI. \r\n\r\nI will work on this once PR  #2076 doctest problem has been addressed, since we need this issue to be resolved before it can be merged. Intended today.\n", "before_files": [{"content": "\"\"\"\nShow stimuli of Haxby et al. dataset\n===============================================================================\n\nIn this script we plot an overview of the stimuli used in \"Distributed\nand Overlapping Representations of Faces and Objects in Ventral Temporal\nCortex\" (Science 2001)\n\"\"\"\n\nfrom scipy.misc import imread\nimport matplotlib.pyplot as plt\n\nfrom nilearn import datasets\nfrom nilearn.plotting import show\n\nhaxby_dataset = datasets.fetch_haxby(subjects=[], fetch_stimuli=True)\nstimulus_information = haxby_dataset.stimuli\n\nfor stim_type in sorted(stimulus_information.keys()):\n    if stim_type == b'controls':\n        # skip control images, there are too many\n        continue\n\n    file_names = stimulus_information[stim_type]\n\n    plt.figure()\n    for i in range(48):\n        plt.subplot(6, 8, i + 1)\n        try:\n            plt.imshow(imread(file_names[i]), cmap=plt.cm.gray)\n        except:\n            # just go to the next one if the file is not present\n            pass\n        plt.axis(\"off\")\n    plt.suptitle(stim_type)\n\nshow()\n", "path": "examples/02_decoding/plot_haxby_stimuli.py"}], "after_files": [{"content": "\"\"\"\nShow stimuli of Haxby et al. dataset\n===============================================================================\n\nIn this script we plot an overview of the stimuli used in \"Distributed\nand Overlapping Representations of Faces and Objects in Ventral Temporal\nCortex\" (Science 2001)\n\"\"\"\n\nimport matplotlib.pyplot as plt\n\nfrom nilearn import datasets\nfrom nilearn.plotting import show\n\nhaxby_dataset = datasets.fetch_haxby(subjects=[], fetch_stimuli=True)\nstimulus_information = haxby_dataset.stimuli\n\nfor stim_type in stimulus_information:\n    # skip control images, there are too many\n    if stim_type != 'controls':\n\n        file_names = stimulus_information[stim_type]\n\n        fig, axes = plt.subplots(6, 8)\n        fig.suptitle(stim_type)\n\n        for img_path, ax in zip(file_names, axes.ravel()):\n            ax.imshow(plt.imread(img_path), cmap=plt.cm.gray)\n\n        for ax in axes.ravel():\n            ax.axis(\"off\")\n\nshow()\n", "path": "examples/02_decoding/plot_haxby_stimuli.py"}]}