The prosecuting attorney or the city attorney, as may be appropriate, shall appear and prosecute in court all criminal offenses arising under this chapter.