code: def test_dkln3():
      dim, scale = 3, 4
      m1, m2 = np.zeros(dim), np.zeros(dim)
      P1, P2 = np.eye(dim), scale * np.eye(dim)
      test1 = 0.5 * (dim * np.log(scale) + dim * (1.0 / scale - 1))
      test2 = 0.5 * (-dim * np.log(scale) + dim * (scale - 1))
      assert dkl_gaussian(m1, P1, m2, P2) == test2
  
file_path: nipy/nipy/algorithms/clustering/tests/test_bgmm.py
imports: import numpy
  import numpy.random
  from ..bgmm import BGMM, VBGMM, dirichlet_eval, dkl_gaussian, multinomial
label_desc: Use image node_id 5 for calling a global function with example usage: test_dkln3() without return types