#NEWLINE# def save_images( x , filename ) : #NEWLINE# #INDENT# ( fig , ax ) = plt . subplots ( 3 , 3 , figsize = ( 9 , 9 ) , dpi = 100 ) #NEWLINE# for ( ai , xi ) in zip ( ax . flatten ( ) , x ) : #NEWLINE# #INDENT# ai . imshow ( xi . reshape ( 28 , 28 ) ) #NEWLINE# #UNINDENT# fig . savefig ( filename )