<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _generate_feed(self, feed_data):
 """ render feed file with data """

        atom_feed = self._render_html('atom.xml', feed_data)

        feed_path = os.path.join(os.getcwd(), 'public', 'atom.xml')

        with codecs.open(feed_path, 'wb', 'utf-8') as f:
            f.write(atom_feed)