<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, payload):
 """ Sign payload using the supplied authenticator """

        if self.authenticator:
            return self.authenticator.signed(payload)
        return payload