code: def _resample_polyphase(x, *, up, down, pad, window, n_jobs):
      if pad == "auto":
          pad = "reflect"
      kwargs = dict(padtype=pad, window=window, up=up, down=down)
      _validate_type(
          n_jobs,
          (None, "int-like"),
          "n_jobs",
          extra="when method='polyphase'",
      )
      parallel, p_fun, n_jobs = parallel_func(
          signal.resample_poly, n_jobs
      )
      if n_jobs == 1:
          y = signal.resample_poly(x, axis=-1, **kwargs)
      else:
          y = np.array(parallel(p_fun(x_, **kwargs) for x_ in x))
      return y
  
imports: from collections import Counter
  from copy import deepcopy
  from functools import partial
  from math import gcd
  import numpy
  from scipy import fft, signal
  from scipy.stats import f
  from ._fiff.pick import _picks_to_idx
  from ._ola import _COLA
  from .cuda import _fft_multiply_repeated, _fft_resample, _setup_cuda_fft_multiply_repeated, _setup_cuda_fft_resample, _smart_pad
  from .parallel import parallel_func
  from .utils import _check_option, _check_preload, _ensure_int, _pl, _validate_type, logger, sum_squared, verbose, warn
label_desc: Use image node_id 26 for calling a global function with example usage: _resample_polyphase(x) and returns: y