On the return of the attachment and the production of the body of the defendant, the superior court has jurisdiction of the matter. The person charged may purge himself of the contempt in the same way, and the same proceeding shall be had, and the same penalties may be imposed, and the same punishment inflicted as in the case of a witness subpoenaed to appear and give evidence on the trial of a civil cause before a superior court.
Ca. Health and Saf. Code § 40844