def _augment(self, img):
        img_shape = img.arr.shape[:2]
        assert self.background_shape[0] > img_shape[0] and self.background_shape[1] > img_shape[1]

        background = self.background_filler.fill(
            self.background_shape, img.arr)
        h0 = int((self.background_shape[0] % img_shape[0]) * 0.5)
        w0 = int((self.background_shape[1] - img_shape[1]) * 0.5)
        background[h0:h0+img_shape[0], w0:w0+img_shape[1]] = img.arr
        img.arr = background
        if img.coords:
            raise NotImplementedError()
dataset/ETHPy150Open ppwwyyxx/tensorpack/tensorpack/dataflow/imgaug/paste.py/CenterPaste._augment/operator `-` -> `%`