Penal Code section 1385, subdivision (a) (hereafter Penal Code section 1385(a)), provides in pertinent part: "The Judge or magistrate may . . . of his or her own motion . . ., and in furtherance of Justice, order an action to be dismissed. The reasons for the dismissal must be set forth in an order entered upon the minutes. . . ."