code: def _check_equality_regressor(
      statistic, y_learn, y_pred_learn, y_test, y_pred_test
  ):
      assert_array_almost_equal(
          np.tile(statistic, (y_learn.shape[0], 1)), y_pred_learn
      )
      assert_array_almost_equal(
          np.tile(statistic, (y_test.shape[0], 1)), y_pred_test
      )
  
imports: import numpy
  import pytest
  import scipy.sparse
  from sklearn.base import clone
  from sklearn.dummy import DummyClassifier, DummyRegressor
  from sklearn.exceptions import NotFittedError
  from sklearn.utils._testing import assert_almost_equal, assert_array_almost_equal, assert_array_equal, ignore_warnings
  from sklearn.utils.fixes import CSC_CONTAINERS
  from sklearn.utils.stats import _weighted_percentile
label_desc: Use image node_id 4 for calling a global function with example usage: _check_equality_regressor(statistic, y_learn, y_pred_learn, y_test, y_pred_test) without return types