The provisions of the Code of Civil Procedure relating to contempt (Alaska Stat. § 09.50.01009.50.060) shall apply in criminal actions.