The said state court is empowered to compel the production of books, papers and writings in the same manner and under the same rules and regulations, as are provided by law for the production, of the same in the superior court.