code: def check_freqs(self, vals, targfreqs, resfreqs, fstims):
      assert resfreqs.argmin() == 0
      assert resfreqs.argmax() == len(resfreqs) - 1
      assert_allclose(resfreqs, targfreqs, atol=1e-06)
      for fstim in fstims:
          i = np.abs(resfreqs - fstim).argmin()
          assert vals[i] > vals[i + 2]
          assert vals[i] > vals[i - 2]
  
imports: from numpy.testing import assert_allclose, assert_almost_equal, assert_array_equal, assert_array_almost_equal_nulp
  import numpy
  import pytest
  from matplotlib import mlab
label_desc: Use image node_id 2 for calling the TestSpectral obj's underlying member method code with example usage: obj.check_freqs(vals, targfreqs, resfreqs, fstims) without return types