def METHOD_NAME(self, dy_model, batch, config):
    batch_x, batch_y = batch[0], batch[1]
    criterion = paddle.nn.BCELoss()
    pred = dy_model.forward(batch_x)
    label = paddle.squeeze(batch_y.astype('float32'))
    loss_q = criterion(pred, label)
    return loss_q