Does the effectiveness of the ketogenic diet in different epilepsies yield insights into its mechanisms?

Does the effectiveness of the ketogenic diet in different epilepsies yield insights into its mechanisms?