code: def entropy(probs):
      return _reduce(
          lambda x, y: x + (y * math.log(1 / y, 2) if y > 0 else 0),
          probs,
          0,
      ) / math.log(len(probs), 2)
  
file_path: turicreate/src/python/turicreate/toolkits/_evaluate_utils.py
imports: from six.moves import reduce
  import math
  import turicreate
label_desc: Use image node_id 1 for calling a global function with example usage: entropy(probs) and returns: unknown