code: def test_regularize():
      x, y = c(0.5, 0.5, 1.0, 1.5), c(1, 2, 3, 4)
      x, y = _regularize(x, y, "mean")
  
      assert_array_almost_equal(x, np.array([0.5, 1.0, 1.5]))
      assert_array_almost_equal(y, np.array([1.5, 3.0, 4.0]))
  
file_path: pmdarima/pmdarima/arima/tests/test_approx.py
imports: from pmdarima.arima.approx import approx, _regularize
  from pmdarima.utils.array import c
  from pmdarima.arima.stationarity import ADFTest
  from numpy.testing import assert_array_almost_equal
  import numpy
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_regularize() without return types