code: def test_mahalanobis(self):
      x = np.random.rand(100) / 100
      A = np.random.rand(100, 100) / 100
      A = np.dot(A.transpose(), A) + np.eye(100)
      mah = np.dot(x, np.dot(np.linalg.inv(A), x))
      assert_almost_equal(mah, mahalanobis(x, A), decimal=1)
  
file_path: nipy/nipy/labs/utils/tests/test_misc.py
imports: import numpy
  from numpy.testing import TestCase, assert_almost_equal
  from scipy import special
  from ..routines import gamln, mahalanobis, median, psi
label_desc: Use image node_id 4 for calling the TestAll obj's underlying member method code with example usage: obj.test_mahalanobis() without return types