397. In the event of any dispute arising as to who is the legal representative of a deceased plaintiff, it is competent to the court either to stay the action until the question has been decided in another action, or to decide at once, as between the parties
legal representative for the purpose of prosecuting the action. And this question shall in such case be dealt with and tried by the court as an issue preliminary to the trial of the merits of the action. *In case of dispute, court to decide who is legal representative.*