pub fn cash_account_from_account_events(
events: Vec<Bound<'_, PyDict>>,
calculate_account_state: bool,
allow_borrowing: bool,
) -> PyResult<CashAccount>pub fn cash_account_from_account_events(
events: Vec<Bound<'_, PyDict>>,
calculate_account_state: bool,
allow_borrowing: bool,
) -> PyResult<CashAccount>