Generalization Bound for a General Class of Neural Ordinary Differential Equations