code: def get_scores(self, predictions):
      if isinstance(predictions, types.GeneratorType):
          scores = self._bh.get_uncertainties_generator(predictions)
      else:
          scores = self._bh.get_uncertainties(predictions)
      if isinstance(scores, Sequence):
          scores = np.concatenate(scores)
      return scores
  
imports: import types
  import numpy
  import structlog
  from scipy.special import softmax
  from scipy.stats import rankdata
  from baal.active.heuristics import AbstractHeuristic, Sequence
label_desc: Use image node_id 3 for calling the StochasticHeuristic obj's underlying member method code with example usage: obj.get_scores(predictions) and returns: scores