15 . The master of a ship to which section 5 applies shall, if he is required by the proper officer of customs or by any prescribed officer to do so, produce for the inspection of that officer the certificates of competency which the master, mates, and engineers of the ship are by the provisions of that section required to hold ; and the ship may be detained until the said certificates are so produced. *Production of certificates of competency.*