<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def insert(self, i, item_weight):
 """ Insert an item with the given weight in the sequence """

        item, weight = item_weight
        self._seq.insert(i, item)
        self.weight += weight