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: Create a repo under current account.
  
  Args:
      password (`str`):
          Current author's password.
      repo_class (`int`):
          The repo class
  
  Raises:
      (`HTTPError`)
          Raise error in request.
docstr_tok: ["Create","a","repo","under","current","account",".","Args",":","password","(","`","str","`",")",":","Current","author","'s","password",".","repo_class","(","`","int","`",")",":","The","repo","class","Raises",":","(","`","HTTPError","`",")","Raise","error","in","request","."]
code: def create(self, password: str, repo_class: int) -> None:
      """
      Create a repo under current account.
  
      Args:
          password (`str`):
              Current author's password.
          repo_class (`int`):
              The repo class
  
      Raises:
          (`HTTPError`)
              Raise error in request.
      """
      token_name = random.randint(0, 10000)
      r = self.create_token(token_name, password)
      token = r.json()
  
      data = {
          "auto_init": True,
          "default_branch": "main",
          "description": repo_class,
          "name": self._repo,
          "private": False,
          "template": False,
          "trust_model": "default",
          "type": repo_class,
      }
      url = self._root + "/api/v1/user/repos"
      try:
          r = requests.post(
              url,
              data=data,
              headers={"Authorization": "token " + str(token["sha1"])},
          )
          r.raise_for_status()
      except HTTPError as e:
          raise e
      finally:
          self.delete_token(str(token["id"]), password)
  
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 14 for calling the HubUtils obj's underlying member method code with example usage: obj.create(password, repo_class) without return types