<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sign(self, encoded):
 """ Return authentication signature of encoded bytes """

        signature = self._hmac.copy()
        signature.update(encoded)
        return signature.hexdigest().encode('utf-8')