    def logout(self, token):
        """
        Logout with token.

        Raises:
            (`HTTPError`)
                Raise error in request.
        """
        url = self._root + '/user/logout'
        data = {'_csrf': token}
        try:
            response = requests.post(url, data=data)
            response.raise_for_status()
        except HTTPError as e:
            raise e
        pass
Logout with token.

Raises:
(`HTTPError`)
Raise error in request.
towhee/utils/hub_utils.py