Define the generator samples from the learned distribution and generates an image:
decoder_input = Input(shape=(latent_dim,))
_decoded = decoder_hidden(decoder_input)
_reconstructed = decoder_reconstruct(_decoded)
generator = Model(decoder_input, _reconstructed)