def METHOD_NAME(user, t_id):
    base.get_resource_orm(models2.Team, t_id)
    if user.is_not_in_team(t_id) and user.is_not_epm():
        raise dci_exc.Unauthorized()
    try:
        t = (
            flask.g.session.query(models2.Team)
            .filter(models2.Team.state != "archived")
            .filter(models2.Team.id == t_id)
            .options(sa_orm.selectinload("remotecis"))
            .options(sa_orm.selectinload("topics"))
            .one()
        )
    except sa_orm.exc.NoResultFound:
        raise dci_exc.DCIException(message="team not found", status_code=404)
    return flask.Response(
        json.dumps({"team": t.serialize()}),
        200,
        headers={"ETag": t.etag},
        content_type="application/json",
    )