code: def test_complex(self):
      o = specdesc("complex")
      c = cvec()
      assert_equal(0.0, o(c))
      a = arange(c.length, dtype=float_type)
      c.norm = a
      assert_equal(a, c.norm)
      # the previous run was on zeros, so previous frames are still 0
      # so we have sqrt ( abs ( r2 ^ 2) ) == r2
      assert_equal(sum(a), o(c))
      # second time. c.norm = a, so, r1 = r2, and the euclidian distance is 0
      assert_equal(0, o(c))
  
imports: from numpy.testing import TestCase, assert_equal, assert_almost_equal
  from numpy import random, arange, log, zeros
  from aubio import specdesc, cvec, float_type
label_desc: Use image node_id 5 for calling the aubio_specdesc obj's underlying member method code with example usage: obj.test_complex() without return types