Witnesses may be required to appear and testify on any proceeding under this chapter, in the same manner as upon the trial of any issue. The party or witness may be required to attend before the judge or a referee appointed by the court or judge. If the examination is taken before a referee, it shall be certified by such referee to the judge.
SDCL 15-20-7