. . . . . . "Every resolution, bylaw, rule, ordinance, or other act or authority permitting or authorizing the infliction of corporal punishment upon a pupil attending a public school is void and unenforceable." .