class_docstr: Base Repo Manager class to create, initialize, download repos.
  
  Args:
      author (`str`):
          The author of the repo.
      repo (`str`):
          The name of the repo.
      root (`str`):
          The root url of the repo.
class_docstr_tok: ["Base","Repo","Manager","class","to","create",",","initialize",",","download","repos",".","Args",":","author","(","`","str","`",")",":","The","author","of","the","repo",".","repo","(","`","str","`",")",":","The","name","of","the","repo",".","root","(","`","str","`",")",":","The","root","url","of","the","repo","."]
docstr: Get the repo type.
  
  Returns:
      (`int`)
          {2: 'operator', 3: 'pipeline'}.
docstr_tok: ["Get","the","repo","type",".","Returns",":","(","`","int","`",")","{","2",":","'operator","'",",","3",":","'pipeline","'","}","."]
code: def get_repo_type(self):
      """
      Get the repo type.
  
      Returns:
          (`int`)
              {2: 'operator', 3: 'pipeline'}.
      """
      if not self.exists():
          engine_log.error(
              "%s/%s repo does not exist.", self._author, self._repo
          )
          raise ValueError(
              f"{self._author}/{self._author} repo does not exist."
          )
  
      res = self.hub_utils.get_info()
      return res.json()["type"]
  
imports: import re
  import subprocess
  import sys
  import time
  from typing import Tuple, List, Union
  from shutil import rmtree
  from pathlib import Path
  from requests.exceptions import HTTPError
  from tqdm import tqdm
  from tempfile import TemporaryFile
  from concurrent.futures import ThreadPoolExecutor
  from towhee.utils.hub_utils import HubUtils
  from towhee.utils.log import engine_log
label_desc: Use image node_id 12 for calling the RepoManager obj's underlying member method code with example usage: obj.get_repo_type() and returns: res