When the insanity of a party is not manifest to the court, and the fact of insanity is disputed by a party or an attorney in the action, the court may try the question, or impanel a jury to try it.