code: def testFullScaleSquare(self):
      sr = 44100
      freq = 1000
      step = 0.5 * sr / freq
      size = 1 * sr
      val = 1
      square = zeros(size)
      for i in range(size):
          square[i] = val
          if i % step < 1.0:
              val *= -1
      self.assertAlmostEqual(Leq()(square), 0.0)
  
file_path: essentia/test/src/unittests/temporal/test_leq.py
imports: from essentia_test import *
  from math import log10
label_desc: Use image node_id 5 for calling the TestLeq obj's underlying member method code with example usage: obj.testFullScaleSquare() without return types