code: def test_morlet2(self):
      w = wavelets.morlet2(1.0, 0.5)
      expected = (np.pi ** (-0.25) * np.sqrt(1 / 0.5)).astype(complex)
      assert_array_equal(w, expected)
  
      lengths = [5, 11, 15, 51, 101]
      for length in lengths:
          w = wavelets.morlet2(length, 1.0)
          assert_(len(w) == length)
          max_loc = np.argmax(w)
          assert_(max_loc == (length // 2))
  
      points = 100
      w = abs(wavelets.morlet2(points, 2.0))
      half_vec = np.arange(0, points // 2)
      assert_array_almost_equal(w[half_vec], w[-(half_vec + 1)])
  
      x = np.array(
          [
              5.03701224e-09 + 2.46742437e-24j,
              1.88279253e00 + 0.00000000e00j,
              5.03701224e-09 - 2.46742437e-24j,
          ]
      )
      y = wavelets.morlet2(3, s=1 / (2 * np.pi), w=2)
      assert_array_almost_equal(x, y)
  
file_path: catboost/contrib/python/scipy/py3/scipy/signal/tests/test_wavelets.py
imports: import numpy
  from numpy.testing import assert_equal, assert_array_equal, assert_array_almost_equal, assert_array_less, assert_
  from scipy.signal import wavelets
label_desc: Use image node_id 5 for calling the TestWavelets obj's underlying member method code with example usage: obj.test_morlet2() without return types