<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_file(self, filename='HEADER'):
 """ Writes Header into filename on disk. Args: filename: Filename and path for file to be written to disk """

        with open(filename, "w") as f:
            f.write(str(self) + "\n")