code: def shift_collector(shifts):
      """
      Collect and compose `shift`s to a general `shift`, to be applied to
          each span (or sth else).
      :param list shifts: the shift functions
      :return ~types.FunctionType: the collected shift function
      """
      return lambda idx: idx + sum(map(lambda f: f(idx), shifts))
  
label_desc: Use image node_id 2 for calling a global function with example usage: shift_collector(shifts) and returns: function