<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def hkeys(self, key, *, encoding=_NOTSET):
 """Get all the fields in a hash."""

        return self.execute(b'HKEYS', key, encoding=encoding)