<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def setall(self, key, values):
 """Delete frames of the given type and add frames in 'values'. Args: key (text):
 key for frames to delete values (list[Frame]):
 frames to add """


        self.delall(key)
        for tag in values:
            self[tag.HashKey] = tag