<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def mask_negative(self):
 """Extend the mask with the image elements where the intensity is negative."""

        self.mask = np.logical_and(self.mask, ~(self.intensity < 0))