<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def append_checksum(self, f, checksum):
 """ Append ESPLoader checksum to the just-written image """

        align_file_position(f, 16)
        f.write(struct.pack(b'B', checksum))