It's simple to modify the following structure from Goodfellow, to a DCGAN type; all you need to do is add two core changes to the Chapter 3, My First GAN in Under 100 Lines, code used to create the DCGAN model. We'll avoid giving you a review of the imports here, but if you need it in the script, import it at the top. Don't forget to point to the right interpreter, too! Now, let's move on to the interesting stuff!