How to get the joint distribution in Pyro?

The latent variable z is sampled from the guide. The third SVI tutorial explains the computation in details.