Mother pleads guilty of endangerment in child death