Cal. Civ. Proc. Code § 1822.53
Before issuing an inspection warrant, the judge may examine on oath the applicant and any other witness, and shall satisfy himself of the existence of grounds for granting such application.