<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dpop(self, **kwds):
 """Pops and returns the first element that matches the given specification. If no elements are found raises IndexError. """

        item = self.dget(**kwds)
        self.remove(item)
        return item