code: def stack(data):
      if isinstance(data[0], np.ndarray):
          return np.array(data)
  
      elif isinstance(data[0], (list, tuple)):
          return list(map(stack, zip(*data)))
  
      return data
  
label_desc: Use image node_id 1 for calling a global function with example usage: stack(data) and returns: data, np, list