def METHOD_NAME(art_warning, get_diabetes_dataset):
    try:
        (_, _), (x_test, y_test) = get_diabetes_dataset
        bb = BlackBoxRegressor((x_test.astype(ART_NUMPY_DTYPE), y_test), (10,), loss_fn=mean_absolute_error)
        pred = bb.predict(x_test.astype(ART_NUMPY_DTYPE))
        assert np.array_equal(pred, y_test.astype(ART_NUMPY_DTYPE))
        assert np.count_nonzero(bb.compute_loss(x_test, y_test)) == 0
        assert np.count_nonzero(bb.compute_loss_from_predictions(pred, y_test)) == 0
    except ARTTestException as e:
        art_warning(e)