In recent days I am studying semidirect product of groups and I have come up with the following question which has already been answered here (From semidirect to direct product of groups), but I can't understand its solution from the comments, can you please clarify me with step by step solutions?
Let $G = N \rtimes_{\varphi} H$. If there exists a homomorphism $f: G \rightarrow N$ which is the identity on $N$, then is it true that $G$ is the direct product of $N$ and $H$?