code: def entropy(probs):
      probs = np.array(probs)
      return np.sum(-probs * np.log(probs))
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import empirical
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 1 for calling a global function with example usage: entropy(probs) and returns: np