Court is the temple of justice and judges are the god of "temple of justice". Advgyan is just an educational website.
Here we will see Section 317 IPC | Indian Penal Code.
Exposure and abandonment of child under twelve years, by parent or person having care of it.— Whoever being the father or mother of a child under the age of twelve years, or having the care of such child, shall expose or leave such child in any place with the intention of wholly abandoning such child, shall be punished with imprisonment of either description for a term which may extend to seven years, or with fine, or with both.
Explanation.— This section is not intended to prevent the trial of the offender for murder or culpable homicide, as the case may be, if the child die in consequence of the exposure.