Lagrangian neural ODEs: Measuring the existence of a Lagrangian with Helmholtz metrics