code: def test_resample_raw(method):
      """Test resampling using RawArray."""
      x = np.zeros((1, 1001))
      sfreq = 2048.0
      raw = RawArray(x, create_info(1, sfreq, "eeg"))
      raw.resample(128, npad=10, method=method)
      data = raw.get_data()
      assert data.shape == (1, 63)
  
imports: import numpy
  import pytest
  from numpy.fft import fft, fftfreq
  from numpy.testing import assert_allclose, assert_almost_equal, assert_array_almost_equal, assert_array_equal, assert_array_less
  from scipy.signal import butter, freqz, sosfreqz
  from scipy.signal import resample
  from mne import Epochs, create_info
  from mne._fiff.pick import _DATA_CH_TYPES_SPLIT
  from mne.filter import _length_factors, _overlap_add_filter, _resample_stim_channels, _smart_pad, construct_iir_filter, create_filter, design_mne_c_filter, detrend, estimate_ringing_samples, filter_data, notch_filter, resample
  from mne.io import RawArray, read_raw_fif
  from mne.utils import catch_logging, requires_mne, run_subprocess, sum_squared
label_desc: Use image node_id 12 for calling a global function with example usage: test_resample_raw(method) without return types