code: def _logZ(dof, scale):
      D = scale.shape[0]
      return (
          (D * (D - 1) / 4) * np.log(np.pi)
          - dof / 2 * _utils.logdet(scale / 2)
          + gammaln((dof - np.arange(scale.shape[0])) / 2).sum()
      )
  
file_path: hmmlearn/lib/hmmlearn/_kl_divergence.py
imports: import numpy
  from scipy.special import gammaln, digamma
  from .None import _utils
label_desc: Use image node_id 7 for calling a global function with example usage: _logZ(dof, scale) and returns: unknown