85-5-401. Determination of water rights between partners, tenants in common, and corporate stockholders. If a water ditch used for irrigating purposes is owned by a partnership, tenants in common, or corporation and there is any dispute between the respective owners, tenants in common, or stockholders respecting the use and division of the waters flowing in the ditch, any partner, tenant in common, or stockholder may commence an action in any court of competent jurisdiction to determine the rights of the respective parties to the use of the waters and may join in the petition a request for the appointment of a water commissioner to apportion and distribute the waters of the ditch according to the rights of the respective owners, tenants in common, or stockholders during the pendency of the action.