A city, county, or superior court shall be entitled to reimbursement for reasonable and necessary costs connected with state prisons or prisoners in connection with any of the following:
With respect to a prisoner, "crime committed at a state prison" as used in this subdivision, includes, but is not limited to, crimes committed by the prisoner while detained in local facilities as a result of a transfer pursuant to Section 2910 or 6253, or in conjunction with any hearing, proceeding, or other activity for which reimbursement is otherwise provided by this section.
Ca. Pen. Code § 4750