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.
      tag (`str`):
          The tag name to attach.
      tag_num (`int`):
          Which enum # for tag.
  
  Raises:
      (`HTTPError`)
          Raise error in request.
docstr_tok: ["Create","a","repo","under","current","account",".","Args",":","password","(","`","str","`",")",":","Current","author","'s","password",".","tag","(","`","str","`",")",":","The","tag","name","to","attach",".","tag_num","(","`","int","`",")",":","Which","enum","#","for","tag",".","Raises",":","(","`","HTTPError","`",")","Raise","error","in","request","."]
code: def add_tag(self, password, tag, tag_num):
      """
      Create a repo under current account.
  
      Args:
          password (`str`):
              Current author's password.
          tag (`str`):
              The tag name to attach.
          tag_num (`int`):
              Which enum # for tag.
  
      Raises:
          (`HTTPError`)
              Raise error in request.
      """
      token_name = random.randint(0, 10000)
      r = self.create_token(token_name, password)
      token = r.json()
      data = {"name": tag, "pretty_name": tag, "type": tag_num}
      url = (
          self._root
          + "/api/v1/repos/"
          + self._author
          + "/"
          + self._repo
          + "/repotag"
      )
  
      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 16 for calling the HubUtils obj's underlying member method code with example usage: obj.add_tag(password, tag, tag_num) without return types