def save_daytime_overrides(self, override_file):
        """ Saves all time of day overrides to the given file """
        output = "\n# Render Pipeline Time Of Day Configuration\n"
        output += "# Instead of editing this file, prefer to use the Time Of Day Editor\n"
        output += "# Any formatting and comments will be lost\n\n"
        output += "control_points:\n"
        for plugin_id, settings in iteritems(self.day_settings):
            if settings:
                output += " " * 4 + plugin_id + ":\n"
                for setting_id, setting_handle in iteritems(settings):
                    output += " " * 8 + setting_id + ": "
                    output += setting_handle.serialize() + "\n"
        with open(override_file, "w") as handle:
            handle.write(output)
 Saves all time of day overrides to the given file 
metadrive/render_pipeline/rpcore/pluginbase/manager.py