code: def recursive_sum(inputs):
      if isinstance(inputs, abc.Sequence):
          return sum([recursive_sum(x) for x in inputs])
      return inputs
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from itertools import cycle, islice
  from collections import abc
  import numpy
  import paddle
  import paddle.nn
  from ppdet.core.workspace import register, serializable
label_desc: Use image node_id 1 for calling a global function with example usage: recursive_sum(inputs) and returns: inputs, sum