code: def stack(process_func):
      import functools
  
      @functools.wraps(process_func)
      def wrapper(decoder):
          # Processing
          if not decoder.from_stack:
              frames, eod = process_func(decoder)
              if decoder.stack:
                  decoder.process_pipe.frames_stack.append(
                      (frames, eod)
                  )
              return frames, eod
          else:
              return next(decoder._frames_iterator)
  
      return wrapper
  
file_path: TimeSide/timeside/plugins/decoder/utils.py
imports: from __future__ import division
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: stack(process_func) and returns: wrapper, frames,  eod, next