code: def _resample_regressor(
      hr_regressor, frame_times_high_res, frame_times
  ):
      """Sub-sample the regressors at frame times.
  
      Parameters
      ----------
      hr_regressor : array of shape(n_samples),
          the regressor time course sampled at high temporal resolution
  
      frame_times_high_res : array of shape(n_samples),
          the corresponding time stamps
  
      frame_times : array of shape(n_scans),
           the desired time stamps
  
      Returns
      -------
      regressor : array of shape(n_scans)
           The resampled regressor.
  
      """
      from scipy.interpolate import interp1d
  
      f = interp1d(frame_times_high_res, hr_regressor)
      return f(frame_times).T
  
imports: import warnings
  from collections.abc import Iterable
  import numpy
  from scipy.stats import gamma
  from nilearn._utils import fill_doc
label_desc: Use image node_id 14 for calling a global function with example usage: _resample_regressor(hr_regressor, frame_times_high_res, frame_times) and returns: f