<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pop (self, key):
 """Remove key from dict and return value."""

        if key in self._keys:
            self._keys.remove(key)
        super(ListDict, self).pop(key)