code: def test_resample_regressor():
      """test regressor resampling on a linear function"""
      x = np.linspace(0, 1, 200)
      y = np.linspace(0, 1, 30)
      z = _resample_regressor(x, x, y)
      assert_almost_equal(z, y)
  
imports: import warnings
  import numpy
  import pytest
  from numpy.testing import assert_almost_equal, assert_array_equal
  from ..hemodynamic_models import _hrf_kernel, _orthogonalize, _regressor_names, _resample_regressor, _sample_condition, compute_regressor, glover_hrf, glover_time_derivative, spm_dispersion_derivative, spm_hrf, spm_time_derivative
label_desc: Use image node_id 5 for calling a global function with example usage: test_resample_regressor() without return types