California Penal Code § 1497
Text of § 1497
When it appears to any court, or judge, authorized by law to issue the writ of habeas corpus, that any one is illegally held in custody, confinement, or restraint, and that there is reason to believe that the person will be carried out of the jurisdiction of the court or judge before whom the application is made, or will suffer some irreparable injury before compliance with the writ of habeas corpus can be enforced, the court or judge may cause a warrant to be issued, reciting the facts, and directed to any peace officer, commanding the peace officer to take the person held in custody, confinement, or restraint, and immediately bring him or her before the court or judge, to be dealt with according to law.
Cite this section
Cal. Penal Code § 1497
https://lawconsensus.com/codes/california/penal-code/1497/
LawCensus reproduces the text of the law for reference. It may not show the most recent changes. Check the official source before you rely on it: official text. This is general information, not legal advice.