A town is a municipal corporation comprising the inhabitants within its boundaries, and formed for the purpose of exercising such powers and discharging such duties of local government and administration of public affairs as have been, or, may be conferred or imposed upon it by law.
N.Y. Town Law § 2