; and (3) suspending the request for detention and imprisonment as a sanction for violations of probation, supervised release, or parole. (f) Prohibition No individual who is granted placement in community supervision, termination of supervision, placement on administrative supervision, or pre-trial release shall be re-incarcerated, placed on supervision or active supervision, or ordered detained pre-trial only as a result of the expiration of the national emergency relating to a communicable disease. (g) Prohibition on Technical Violations and Certain Mandatory Revocations of Probation or Supervised Release (1) Resentencing in cases of probation and supervised release (A) In general Beginning on the date on which a national emergency relating to a communicable disease is declared and ending on the date that is 60 days after such national emergency expires, and notwithstanding section 3582(b) of title 18, United States Code, a court shall order the resentencing of a defendant who is serving a term of imprisonment resulting from a revocation of probation, or supervised release for a Grade C violation for conduct under section 7B1.1(c)(3)(B) of the United States Sentencing Guidelines, upon motion of the defendant. (B) Resentencing The court shall order the resentencing of a defendant described in subparagraph (A) as follows: (i) In the case of a revoked sentence of probation, the court shall resentence the defendant to probation, the duration of which shall be equal to the period of time remaining on the term of probation originally imposed at the time the defendant was most recently placed in custody, unless the court determines that decreasing the length of the term of probation is in the interest of justice. (ii) In the case of a revoked term of supervised release, the court shall continue the defendant on supervised release, the duration of which shall be equal to the period of time the defendant had remaining on supervised release when the defendant was most recently placed in custody, unless the court