code: def _kl_gamma_gamma(g0, g1, name=None):
      """Calculate the batched KL divergence KL(g0 || g1) with g0 and g1 Gamma.
  
      Args:
        g0: instance of a Gamma distribution object.
        g1: instance of a Gamma distribution object.
        name: (optional) Name to use for created operations.
          Default is "kl_gamma_gamma".
  
      Returns:
        kl_gamma_gamma: `Tensor`. The batchwise KL(g0 || g1).
      """
      with ops.name_scope(
          name,
          "kl_gamma_gamma",
          values=[g0.concentration, g0.rate, g1.concentration, g1.rate],
      ):
          # Result from:
          #   http://www.fil.ion.ucl.ac.uk/~wpenny/publications/densities.ps
          # For derivation see:
          #   http://stats.stackexchange.com/questions/11646/kullback-leibler-divergence-between-two-gamma-distributions   pylint: disable=line-too-long
          return (
              (
                  (g0.concentration - g1.concentration)
                  * math_ops.digamma(g0.concentration)
              )
              + math_ops.lgamma(g1.concentration)
              - math_ops.lgamma(g0.concentration)
              + g1.concentration * math_ops.log(g0.rate)
              - g1.concentration * math_ops.log(g1.rate)
              + g0.concentration * (g1.rate / g0.rate - 1.0)
          )
  
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import check_ops
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops.distributions import distribution
  from tensorflow.python.ops.distributions import kullback_leibler
  from tensorflow.python.ops.distributions import util
  from tensorflow.python.util import deprecation
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 1 for calling a global function with example usage: _kl_gamma_gamma(g0, g1, name) and returns: unknown