<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def authenticate(self):
 """ Authenticates with the PA Oauth system """

        if self._auth_token is None or self._token_expiry < time.time():
            self._perform_auth()

        yield self._auth_token