Subject to sentencing restrictions, the court shall order a person who is convicted pursuant to this chapter to pay the costs of imprisonment under this chapter.