<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def keys(self, pattern, *, encoding=_NOTSET):
 """Returns all keys matching pattern."""

        return self.execute(b'KEYS', pattern, encoding=encoding)