<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def format_hdr(self, delim=',', qu='"'):
 """ Prepares the header in CSV format """

        res = ''
        if self.header:
            for d in self.header:
                res += qu + str(d) + qu + delim
        return res + '\n'