Penal Code § 1339
CHAPTER 4. Examination of Witnesses Conditionally
If the court or judge is satisfied that the examination of the witness is necessary, an order must be made that the witness be examined conditionally, at a specified time and place, and before a magistrate designated therein.