code: def accumulate_video_pred(manifest_file, manifest_root, clip_preds):
      #  Index file will look like:
      #  video_clip_file,label_file
      #  video_clip_file will be video_path/v_WritingOnBoard_g05,
      #  where WritingOnBoard_g05 is the video name
      video_pred = {}
      clip_files = np.genfromtxt(
          manifest_file,
          dtype=None,
          delimiter=",",
          usecols=(0),
          skip_header=1,
      )
      for clip_file, pred in zip(clip_files, clip_preds):
          clip_file_abs = os.path.join(
              manifest_root, clip_file.decode()
          )
          video_name = "_".join(
              os.path.basename(clip_file_abs).split("_")[1:-2]
          )
          category = os.path.split(os.path.dirname(clip_file_abs))[-1]
          video_pred.setdefault(video_name, (category, [])).__getitem__(
              1
          ).append(pred)
  
      return video_pred
  
file_path: neon/examples/video-c3d/data.py
imports: import os
  import numpy
  from neon.data.aeon_shim import AeonDataLoader
  from neon.data.dataloader_transformers import OneHot, TypeCast
  from neon.util.persist import get_data_cache_or_nothing
label_desc: Use image node_id 6 for calling a global function with example usage: accumulate_video_pred(manifest_file, manifest_root, clip_preds) and returns: video_pred