code: def segment_video(infile, tmpdir):
      segments_out = os.path.join(tmpdir, "segment.csv")
      cmd = """ffmpeg  -i {0} -an -vf scale=171:128 -framerate 25 -c:v mjpeg -q:v 3 \
      -f segment -segment_time 0.64 -reset_timestamps 1 -segment_list {1} \
      -segment_list_entry_prefix {2}/ -y {2}/clip_%02d.avi"""
      proc = subprocess.Popen(
          cmd.format(infile, segments_out, tmpdir), shell=True
      )
      proc.communicate()
  
      manifest_file = os.path.join(tmpdir, "manifest.csv")
      all_clips = np.genfromtxt(segments_out, dtype=None, delimiter=",")
      all_clips = np.atleast_1d(all_clips)
      valid_clips = [
          l[0].decode() for l in all_clips if l[2] - l[1] > 0.63
      ]
      np.savetxt(
          manifest_file,
          valid_clips,
          fmt="%s",
          header="@FILE",
          comments="",
      )
      return manifest_file
  
file_path: neon/examples/video-c3d/demo.py
imports: import os
  import numpy
  import subprocess
  import atexit
  import shutil
  from tempfile import mkdtemp
  from neon.models import Model
  from neon.util.argparser import NeonArgparser
  from data import make_inference_loader
label_desc: Use image node_id 1 for calling a global function with example usage: segment_video(infile, tmpdir) and returns: manifest_file