code: def score(value):
      """General wrapper around objective function evaluations to get the score.
  
      :param value: output of the objective function
      :returns: the score
  
      If value is a scalar, it is returned immediately. If value is iterable, its first element is returned.
      """
      try:
          return value[0]
      except (TypeError, IndexError):
          return value
  
imports: import abc
  import random
  import threading
label_desc: Use image node_id 5 for calling a global function with example usage: score(value) and returns: value, value