The commissioner of finance and administration shall issue no warrant for the payment of costs of witnesses, unless the certificate of the judge and district attorney general show that the inspection took place.