A sac, having a number of functions, that develops in the alimentary canal of the embryos of mammals, birds and reptiles.