    def get_user(self, token: str) -> requests.Response:
        """
        Get the user info with token.

        Args:
            token (`str`):
                Authenticated user's token.

        Returns:
            (`Response`)
                Return the user(id, username etc.).

        Raises:
            (`HTTPError`)
                Raise error in request.
        """
        url = self._root + '/api/v1/user'
        try:
            response = requests.get(url, params={'token': token})
            response.raise_for_status()
            return response
        except HTTPError as e:
            raise e
Get the user info with token.

Args:
token (`str`):
Authenticated user's token.

Returns:
(`Response`)
Return the user(id, username etc.).

Raises:
(`HTTPError`)
Raise error in request.
towhee/utils/hub_utils.py