    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']
Get the repo type.

Returns:
(`int`)
{2: 'operator', 3: 'pipeline'}.
towhee/hub/repo_manager.py