pub(crate) fn py_event_synchronization( train_a: PyReadonlyArray1<'_, i32>, train_b: PyReadonlyArray1<'_, i32>, dt: f64, tau_ms: f64, ) -> f64