<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, default=None):
 """Remove and return the last item of the list ``key``. If key doesn't exists it return ``default``. ['1', '2', '3', '4'] 'empty' :param key: key name to pop :type key: str :param default: default value if key doesn't exist :type default: Any :return: value associated with given key or None or ``default`` :rtype: Any """

        logger.debug('call pop %s', key)
        value = self.get(key)
        self._redis.delete(key)
        return value or default