code: def assertInverse(self, cov, icov):
      (rows, cols) = cov.shape
      self.assertEqual(rows, cols)
      I = zeros([rows, cols])  # identity matrix
      for i in range(rows):
          I[i][i] = 1.0
      # assert that covariance*inverse_covariance = identity matrix
      self.assertAlmostEqualMatrix(dot(cov, icov), I, 1e-6)
  
file_path: essentia/test/src/unittests/stats/test_singlegaussian.py
imports: from essentia_test import *
  from numpy import dot
label_desc: Use image node_id 1 for calling the TestSingleGaussian obj's underlying member method code with example usage: obj.assertInverse(cov, icov) without return types