Cooper: A Library for Constrained Optimization in Deep Learning