Any person against whom any complaint is lodged or information given in the municipal court may file a plea of guilty under such regulations and upon such terms as the court may prescribe. If such person cannot attend the trial, the court may pass such order or sentence in the case as if the person were personally present.