docs: def entropy_difference(d1, d2):
      """Return the difference in entropy between two distributions."""
      d1, d2 = flatten(d1), flatten(d2)
      return abs(entropy(d1, base=2.0) - entropy(d2, base=2.0))