<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def revoke_token(self, token, token_type=''):
 """ Revokes access token :param token: access token """

        if token_type:
            self.handler[token_type].black_list(token)
        else:
            self.handler.black_list(token)