code: def testConstructedData(self):
      # Array with identical values
      self.assertAlmostEqual(
          0.0, Entropy()(np.zeros(100, dtype=np.single))
      )
      self.assertAlmostEqual(
          -math.log2(0.01),
          Entropy()(np.ones(100, dtype=np.single)),
          precision=1e-5,
      )
      self.assertAlmostEqual(
          -math.log2(0.01),
          Entropy()(np.full(100, 5, dtype=np.single)),
          precision=1e-5,
      )
  
      # Trivial distribution
      arr = np.zeros(100, dtype=np.single)
      arr[0] = 100
      self.assertAlmostEqual(0.0, Entropy()(arr))
      del arr
  
file_path: essentia/test/src/unittests/stats/test_entropy.py
imports: import os.path
  import random
  from essentia_test import *
  import numpy
  import math
label_desc: Use image node_id 3 for calling the TestEntropy obj's underlying member method code with example usage: obj.testConstructedData() without return types