Neural Ordinary Differential Equations for Learning and Extrapolating System Dynamics Across Bifurcations