<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_updates_to_csv(self, updates):
 """ Given a list of updates, write the updates out to the provided CSV file. Args: updates (list):
 List of Update objects. """

        with open(self._csv_file_name, 'w') as csvfile:
            csvwriter = self.csv_writer(csvfile)
            csvwriter.writerow(CSV_COLUMN_HEADERS)

            for update in updates:
                row = [
                    update.name,
                    update.current_version,
                    update.new_version,
                    update.prelease,
                ]
                csvwriter.writerow(row)