code: def transform(self, X):
          
          # Note: This maps to mean of distribution, we could alternatively
          # sample from Gaussian distribution
          return self.sess.run(self.z_mean, feed_dict={self.x: X})
docs: Transform data by mapping it into the latent space.