Allen Brain Atlas Github Program

I’m attempting to use a line of code from Github that deals with downloading multiple files from Allen Brain Atlas. However, I keep running into the error message found in the image attached and when I do try to complete the instructions encoded in the image, I find myself with new errors to resolve. Does anyone have any knowledge of coding and/or software engineering to try and run the code I am attempting to run? I will attach the link to the code that I am trying to run as well.

https://alleninstitute.github.io/AllenSDK/_static/examples/nb/image_download.html#Downloading-all-of-the-images-from-a-section-data-set