The deposition shall be taken upon written interrogatories filed by the applicant, and cross interrogatories, if any are filed by any party adversely interested, and it shall be taken and returned substantially in the same manner as if taken to be used in a cause pending in the same court.
Mass. Gen. Laws ch. 233, § 56