Order for production of documents
52A judge may, on a summary application at any time before or after an action is commenced for the enforcement of a lien, make an order requiring the owner or his agent, the mortgagee or his agent, the unpaid vendor or his agent, or the contractor or sub-contractor, as the case may be, of whom the demand is made under section 32, to produce and allow any lienholder to inspect any such agreement, mortgage, or agreement for sale, and may make such order as to the cost of the application and order as he deems just.