(2) This section does not affect any right that an adult in custody may have to prosecute a writ of habeas corpus. [1995 c.108 §2; 2019 c.213 §78]