code: def test_resample_below_1_sample(method):
      """Test resampling doesn't yield datapoints."""
      # Raw
      x = np.zeros((1, 100))
      sfreq = 1000.0
      raw = RawArray(x, create_info(1, sfreq, "eeg"))
      raw.resample(5, method=method)
      assert len(raw.times) == 1
      assert raw.get_data().shape[1] == 1
  
      # Epochs
      x = np.zeros((1, 10000))
      sfreq = 1000.0
      raw = RawArray(x, create_info(1, sfreq, "eeg"))
      events = np.array([[400, 0, 1], [2000, 0, 1], [3000, 0, 1]])
      epochs = Epochs(
          raw,
          events,
          {"test": 1},
          0,
          0.2,
          proj=False,
          picks="eeg",
          baseline=None,
          preload=True,
          verbose=False,
      )
      with catch_logging() as log:
          epochs.resample(1, method=method, verbose=True)
      log = log.getvalue()
      if method == "fft":
          assert "neighborhood" not in log
      else:
          assert "neighborhood" in log
      assert len(epochs.times) == 1
      assert epochs.get_data(copy=False).shape[2] == 1
  
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 13 for calling a global function with example usage: test_resample_below_1_sample(method) without return types