code: def wishart_logz(v, s, dets, n_features):
      "The logarithm of the normalization constant for the wishart distribution"
      z = 0.0
      z += 0.5 * v * n_features * np.log(2)
      z += 0.25 * (n_features * (n_features - 1)) * np.log(np.pi)
      z += 0.5 * v * np.log(dets)
      z += np.sum(gammaln(0.5 * (v - np.arange(n_features) + 1)))
      return z
  
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 5 for calling a global function with example usage: wishart_logz(v, s, dets, n_features) and returns: z