Section 2620 Of Article 2. Prisoners As Witnesses From California Penal Code >> Title 1. >> Part 3. >> Chapter 3. >> Article 2.
2620
. When it is necessary to have a person imprisoned in the state
prison brought before any court to be tried for a felony, or for an
examination before a grand jury or magistrate preliminary to such
trial, or for the purpose of hearing a motion or other proceeding, to
vacate a judgment, an order for the prisoner's temporary removal
from said prison, and for the prisoner's production before such
court, grand jury or magistrate, must be made by the superior court
of the county in which said action, motion, or examination is pending
or by a judge thereof; such order shall be made only upon the
affidavit of the district attorney or defense attorney, stating the
purpose for which said person is to be brought before the court,
grand jury or magistrate or upon the court's own motion. The order
shall be executed by the sheriff of the county in which it shall be
made, whose duty it shall be to bring the prisoner before the proper
court, grand jury or magistrate, to safely keep the prisoner, and
when the prisoner's presence is no longer required to return the
prisoner to the prison from whence the prisoner was taken; the
expense of executing such order shall be a proper charge against, and
shall be paid by, the county in which the order shall be made.
Such order shall recite the purposes for which said person is to
be brought before the court, grand jury or magistrate, and shall be
signed by the judge making the order and sealed with the seal of the
court. The order must be to the following effect: