According to Jim (2001)
S5E22 Belaboring the Point
Ryan joyfully reveals to everyone that Dana is expecting, but Jim cautions him about the mood swings that often accompany pregnancy. This leads Jim to have a vivid dream in which he experiences being pregnant himself, highlighting his anxieties and concerns about the changes ahead.