code: def test_values_uniform(random_xy_dataset_regr):
      X, y = random_xy_dataset_regr
      mod = RandomRegressor(strategy="uniform")
      predictions = mod.fit(X, y).predict(X)
      assert (predictions >= y.min()).all()
      assert (predictions <= y.max()).all()
      assert mod.min_ == pytest.approx(y.min(), abs=0.0001)
      assert mod.max_ == pytest.approx(y.max(), abs=0.0001)
  
file_path: scikit-lego/tests/test_estimators/test_randomregressor.py
imports: import numpy
  import pytest
  from sklego.common import flatten
  from sklego.dummy import RandomRegressor
  from tests.conftest import general_checks, nonmeta_checks, regressor_checks, select_tests
label_desc: Use image node_id 2 for calling a global function with example usage: test_values_uniform(random_xy_dataset_regr) without return types