Code and supplemental material for "Sum-Product Autoencoding: Encoding and Decoding Representations using Sum-Product Networks"