The correct answer is "By allowing the accused to request a trial by jury."
This is because habeas corpus is a writ created to correct violations of personal liberty by directing judicial inquiry into the legality of a detention. Therefore safeguarding individual freedom, for example in protection against illegal imprisonment.
A writ of habeas corpus safeguards individual freedom by allowing the accused to request trial by jury. Option B is correct,
Habeas corpus is a tool in law through which a person can report an unlawful detention or imprisonment to a court and request that the court order the custodian of him/she, often a prison official, to bring the prisoner to court, to determine whether the detention is lawful.