code: def _unflatten_args_as_list(xs, inds):
      ys = []
      for ind in inds:
          code = ind[0]
          if code == "s":
              return xs[0]
          elif code == "i":
              i_start, i_end, sub_inds = ind[1:]
              y = _unflatten_args(xs[i_start:i_end], sub_inds)
          else:
              i = ind[1]
              y = xs[i]
          ys.append(y)
      return ys
  
imports: import sys
  import weakref
  import numpy
  import chainer
  from chainer.backends import cuda
  import chainer.function_node
label_desc: Use image node_id 5 for calling a global function with example usage: _unflatten_args_as_list(xs, inds) and returns: ys, xs