N.Y. Agriculture & Markets Law § 118
1. It shall be a violation, punishable as provided in subdivision two of this section, for:
2. It shall be the duty of the dog control officer of any municipality to bring an action against any person who has committed within such municipality any violation set forth in subdivision one of this section. Any municipality may elect either to prosecute such action as a violation under the penal law or to commence an action to recover a civil penalty. A violation of this section shall be punishable, subject to such an election, either: