Any duty imposed in this chapter upon the legislative body of a city with regard to calling a municipal election, or in connection with an election called pursuant to this chapter, is likewise imposed upon any officer having any duty to perform connected with the election, so far as may be necessary to carry out this chapter.