code: def kl_normal_distribution(mean_q, variance_q, mean_p, variance_p):
      """KL Divergence between two normal distributions."""
      result = (
          (np.log(variance_p / variance_q)) / 2
          + ((mean_q - mean_p) ** 2 + variance_q) / (2 * variance_p)
          - 0.5
      )
      assert result >= 0, result
      return result
  
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 2 for calling a global function with example usage: kl_normal_distribution(mean_q, variance_q, mean_p, variance_p) and returns: result