<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_repo_to_team(self, auth, team_id, repo_name):
 """ Add or update repo from team. :param auth.Authentication auth: authentication object, must be admin-level :param str team_id: Team's id :param str repo_name: Name of the repo to be added to the team :raises NetworkFailure: if there is an error communicating with the server :raises ApiFailure: if the request cannot be serviced """

        url = "/admin/teams/{t}/repos/{r}".format(t=team_id, r=repo_name)
        self.put(url, auth=auth)