code: def categorical_kl(logp0, logp1):
      """
      tf symbol for mean KL divergence between two batches of categorical probability distributions,
      where the distributions are input as log probs.
      """
      all_kls = tf.reduce_sum(tf.exp(logp1) * (logp1 - logp0), axis=1)
      return tf.reduce_mean(all_kls)
  
imports: import numpy
  import tensorflow
  import scipy.signal
  from gym.spaces import Box, Discrete
label_desc: Use image node_id 13 for calling a global function with example usage: categorical_kl(logp0, logp1) and returns: tf