§57-4-2. Taking and certification of depositions -- Out-of state and in foreign countries.

  On affidavit that a witness resides out of this state, or is out of it in the service thereof, or of the United States, or is out of this state and for justifiable reasons will probably be out of this state until after the trial of the case in which his or her testimony is needed, his or her deposition may be taken by or before any justice, notary public or other officer authorized to take depositions in the state wherein the witness may be, or, if the deposition is to be taken in a foreign country, by or before such commissioner or commissioners as may be agreed upon by the parties or appointed by the court, or, if there be none such, by or before any American minister, plenipotentiary, charge d'affaires, consul general, consul, vice consul, consular agent, vice deputy consular agent, commercial agent or vice commercial agent, appointed by the government of the United States, or by or before the mayor or other chief magistrate of any city, town or corporation in the country or any notary public therein. Any person or persons taking the deposition may administer an oath to the witness and take and certify the deposition with his or her official seal annexed, and if he or she have none, the genuineness of his or her signature shall be authenticated by some officer of the same state or country, under his or her official seal.