<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set(self, header, value=None):
 """Set header to the value"""

        if value is None:
            for k, v in header.items():
                self.headers[k] = v
        else:
            self.headers[header] = value