How to use GAN in pytorch

is there any code or tutorial showing how to generate images and their masks in pytorch