Chinese state media say a court in Tibet has imprisoned 17 people for terms of three years to life for their roles in deadly riots and violence in the region last month .