class_docstr: The Hub Utils to deal with the http request. And other staticmethod for hub.
  
  Args:
      author (`str`):
          The author of the repo.
      repo (`str`):
          The name of the repo.
      root (`str`):
          The root url where the repo located.
class_docstr_tok: ["The","Hub","Utils","to","deal","with","the","http","request",".","And","other","staticmethod","for","hub",".","Args",":","author","(","`","str","`",")",":","The","author","of","the","repo",".","repo","(","`","str","`",")",":","The","name","of","the","repo",".","root","(","`","str","`",")",":","The","root","url","where","the","repo","located","."]
docstr: Logout with token.
  
  Raises:
      (`HTTPError`)
          Raise error in request.
docstr_tok: ["Logout","with","token",".","Raises",":","(","`","HTTPError","`",")","Raise","error","in","request","."]
code: 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
  
imports: import random
  import traceback
  import requests
  from requests.exceptions import HTTPError
  from requests.auth import HTTPBasicAuth
  from towhee.utils.log import engine_log
label_desc: Use image node_id 19 for calling the HubUtils obj's underlying member method code with example usage: obj.logout(token) without return types