<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_id3(self, filename):
 """ Write id3 tags """

        if not os.path.exists(filename):
            raise ValueError("File doesn't exists.")

        self.mapper.write(filename)