(1) A consular officer shall have the right to inspect, at ports within his consular district, a vessel of any flag destined to a port of the sending state, in order to enable him to procure the necessary information to prepare and execute such documents as may be required by the law of the sending state as a condition of entry of such vessel into its ports, and to furnish to the competent authori