How to store/get dash-aggrid note in callback?

Hi, I have a dash-ag-grid in layout. Would like to store the group expansion/collapse status in dcc.store and load it out when refresh.

I googled and this might be the solution:

But how to do it in python please?