In the consideration of any petition for a writ of habeas corpus by the supreme court or the court of appeals, whether in an original proceeding or upon an appeal, if any federal question shall be presented by the pleadings, it shall be the duty of the supreme court to determine in its opinion whether or not the petitioner has been denied a right guaranteed by the Constitution of the United States.
RCW 7.36.140