ELI5: When a baby is in the mothers womb, and is developed enough,does it produce human waste from the nutrients the mother provides to it? If so, where does it go or how does the body adapt to that.

reddit: the front page of the internet 2017-07-04