<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def gradient(self, y_true, y_pred):
 """Returns the gradient of the L1 loss with respect to each prediction. Example: array([ 1., 0., -1.]) """

        return np.sign(np.subtract(y_pred, y_true))