As a fundamental instrument for safeguarding individual’s freedom against arbitrary and lawless state action, the writ of habeas corpus serves as a procedural device, by which executive, judicial, or other governmental restraints on personal liberty are subjected to judicial scrutiny. The purpose of the writ of habeas corpus is not to determine the guilt or innocence of a prisoner, but only to test the legality of a prisoner's current detention. In other words, the writ of habeas corpus only functions to test jurisdictional defects that may invalidate the legal authority to detain the person, and the reviewing court only examines the power and authority of the governmental authority to detain the person, and does not review the correctness of the authorities’ conclusion to detain the person.