code: def test_filter_array():
      """Test filtering an array."""
      for data in (np.zeros((11, 1, 10)), np.zeros((9, 1, 10))):
          filter_data(
              data,
              512.0,
              8,
              12,
              method="iir",
              iir_params=dict(ftype="butterworth", order=2),
          )
  
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 1 for calling a global function with example usage: test_filter_array() without return types