keras/src/optimizers/base_optimizer.py/BaseOptimizer/save_own_variables
class BaseOptimizer:    def save_own_variables(self, store):
        """Get the state of this optimizer object."""
        for i, variable in enumerate(self.variables):
            store[str(i)] = variable.numpy()