def save_overrides(self, override_file):
        """ Saves all overrides to the given file """
        output = "\n# Render Pipeline Plugin Configuration\n"
        output += "# Instead of editing this file, prefer to use the Plugin Configurator\n"
        output += "# Any formatting and comments will be lost\n\n"
        output += "enabled:\n"

        def sort_criteria(pid):
            return ("A" if self.is_plugin_enabled(pid) else "B") + pid

        for plugin_id in sorted(self.settings, key=sort_criteria):
            output += "   {}- {}\n".format(" # " if plugin_id not in self.enabled_plugins else " ", plugin_id)
        output += "\n\noverrides:\n"
        for plugin_id, pluginsettings in sorted(iteritems(self.settings)):
            output += " " * 4 + plugin_id + ":\n"
            for setting_id, setting_handle in iteritems(pluginsettings):
                output += " " * 8 + "{}: {}\n".format(setting_id, setting_handle.value)
            output += "\n"
        with open(override_file, "w") as handle:
            handle.write(output)
 Saves all overrides to the given file 
metadrive/render_pipeline/rpcore/pluginbase/manager.py