code: def _kl_divergence_fn(true_dist, predicted_dist):
      epsilon = 1e-7  # A small increment to add to avoid taking a log of zero.
      return true_dist * tf.math.log(
          true_dist + epsilon
      ) - true_dist * tf.math.log(predicted_dist + epsilon)
  
file_path: neural-structured-learning/neural_structured_learning/lib/distances.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import neural_structured_learning.configs
  import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: _kl_divergence_fn(true_dist, predicted_dist) and returns: unknown