code: def entropy_sum(values: np.array, axis: int = -1):
      # sum Scipy basic entropy function: entr()
      entropy = entr(values)
      return np.sum(entropy, where=~np.isnan(entropy), axis=axis)
  
imports: from collections.abc import Mapping
  from typing import Callable
  import numpy
  import torch
  from scipy.special import entr
  from sklearn.base import BaseEstimator
  from skorch.utils import to_numpy
  from modAL.utils.data import modALinput
  from modAL.utils.selection import multi_argmax, shuffled_argmax
label_desc: Use image node_id 7 for calling a global function with example usage: entropy_sum(values, axis) and returns: np