code: def wishart_log_det(a, b, detB, n_features):
      """Expected value of the log of the determinant of a Wishart
  
      The expected value of the logarithm of the determinant of a
      wishart-distributed random variable with the specified parameters.
      """
      l = np.sum(digamma(0.5 * (a - np.arange(-1, n_features - 1))))
      l += n_features * np.log(2)
      return l + detB
  
imports: from __future__ import print_function
  import numpy
  from scipy.special import digamma, gammaln
  from scipy import linalg
  from scipy.spatial.distance import cdist
  from ..externals.six.moves import xrange
  from ..utils import check_random_state, check_array, deprecated
  from ..utils.extmath import logsumexp, pinvh, squared_norm
  from ..utils.validation import check_is_fitted
  from ..None import cluster
  from .gmm import _GMMBase
label_desc: Use image node_id 4 for calling a global function with example usage: wishart_log_det(a, b, detB, n_features) and returns: unknown