    def pop(self, key, default="_raise"):
        """Remove and return an item"""
        if key in self:
            value = self.values.pop(key)
            del self.timestamps[key]
            return value
        else:
            if default == "_raise":
                raise KeyError(key)
            else:
                return default
Remove and return an item
jupyterhub/services/auth.py