AgGrid: Have user select up to 2 rows

Hello all, I was wondering if it is possible to have the user select up to 2 rows from an AgGrid table?
Below is my current code and I was wondering if there is a work around to have the user select up to two rows instead of “single” or “multiple” rows.

gd2 = GridOptionsBuilder.from_dataframe(df)
gd2.configure_pagination(enabled=True)
gd2.configure_selection(selection_mode="single", use_checkbox=True)