If any person commences a criminal prosecution against any individual, either by warrant from a judge of the general sessions court, or otherwise, and shall afterwards willfully abandon the criminal prosecution, the court having jurisdiction of the cause shall have power to tax the prosecutor with the costs.
T.C.A. § 40-25-127