<s> from numpy . testing import assert_array_equal <EOL> from mne . preprocessing . peak_finder import peak_finder <EOL> def test_peak_finder ( ) : <EOL> """<STR_LIT>""" <EOL> x = [ <NUM_LIT:0> , <NUM_LIT:2> , <NUM_LIT:5> , <NUM_LIT:0> , <NUM_LIT:6> , - <NUM_LIT:1> ] <EOL> peak_inds , peak_mags = peak_finder ( x ) <EOL> assert_array_equal ( peak_inds , [ <NUM_LIT:2> , <NUM_LIT:4> ] ) </s>
