<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_cdn_log_retention(self, container, enabled):
 """ Enables or disables whether CDN access logs for the specified container are collected and stored on Cloud Files. """

        headers = {"X-Log-Retention": "%s" % enabled}
        self.api.cdn_request("/%s" % utils.get_name(container), method="PUT",
                headers=headers)