(a) The right to petition the Superior Court of Gordon County for a writ of certiorari by any person convicted in the municipal court shall exist in all cases, and such writ shall be obtained under the sanction of the judge of the Superior Court of Gordon County under the laws of the State of Georgia governing the granting of the issuance of writs of certiorari. (b) Nothing in this section shall prevent a defendant who desires to obtain a writ of certiorari from the judge of the Superior court of Gordon County from doing so; provided, however, that the applicant failing to give bond and security may, in the discretion of the municipal court judge, be placed in the city prison or county jail to await the final judgment on the appeal. Nothing in this section shall be construed to prevent any person convicted in the municipal court of a violation of any city ordinance from petitioning for a writ of certiorari directly to the Superior Court in accordance with the provisions of state law in such cases.