<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, name, path=None):
 """Write the contents of a file from the disk to the XPI."""


        if path is None:
            path = name

        self.zf.write(path, name)