code: def test_quantile(coefs, intercept, quantile, method):
      """Tests with noise on an easy problem. A good score should be possible."""
      X, y = _create_dataset(coefs, intercept, noise=1.0)
      quant = QuantileRegression(method=method, quantile=quantile)
      quant.fit(X, y)
  
      np.testing.assert_almost_equal(
          (quant.predict(X) >= y).mean(), quantile, decimal=2
      )
  
file_path: scikit-lego/tests/test_estimators/test_quantile_regression.py
imports: import numpy
  import pytest
  from sklego.common import flatten
  from sklego.linear_model import QuantileRegression
  from sklego.testing import check_shape_remains_same_regressor
  from tests.conftest import general_checks, nonmeta_checks, regressor_checks, select_tests
label_desc: Use image node_id 4 for calling a global function with example usage: test_quantile(coefs, intercept, quantile, method) without return types