<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self, *args, **kwargs):
 """ Equivalent to the python dict update method. Update the dictionary with the key/value pairs from other, overwriting existing keys. Args: other (dict):
 The source of key value pairs to add to headers Keyword Args: All keyword arguments are stored in header directly Returns: None """

        for next_dict in chain(args, (kwargs, )):
            for k, v in next_dict.items():
                self[k] = v