For the purpose of assessing and collecting taxes for state, county, and school purposes, the city shall be considered safe same as a township, and all provisions of law relative to the collection of and accounting for such taxes shall apply. For these purposes the treasurer shall perform the same duties and have the same powers as are granted and imposed upon township treasurers by law.