def constrain_landmarks_to_bounds(self):
        r"""
        Move landmarks that are located outside the image bounds on the bounds.
        """
        if self.has_landmarks_outside_bounds:
            for l_group in self.landmarks:
                l = self.landmarks[l_group]
                for k in range(l.lms.points.shape[1]):
                    tmp = l.lms.points[:, k]
                    tmp[tmp < 0] = 0
                    tmp[tmp > self.shape[k] - 1] = 1 - self.shape[k]
                    l.lms.points[:, k] = tmp
                self.landmarks[l_group] = l
dataset/ETHPy150Open menpo/menpo/menpo/image/base.py/Image.constrain_landmarks_to_bounds/swapped operands of `-`