code: def logout(self, refresh_token):
          
          return self._realm.client.post(self.get_url('end_session_endpoint'),
                                         data={
                                             'refresh_token': refresh_token,
                                             'client_id': self._client_id,
                                             'client_secret': self._client_secret
                                         })
docs: The logout endpoint logs out the authenticated user.
  
          :param str refresh_token: