code: def init_video_data():
      batch_size = 2
      video_directory = os.path.join(
          os.environ["DALI_EXTRA_PATH"],
          "db",
          "video",
          "sintel",
          "video_files",
      )
  
      video_files = [
          os.path.join(video_directory, f)
          for f in sorted(os.listdir(video_directory))
      ]
  
      video_pipe = dali.pipeline.Pipeline(batch_size, 3, 0, seed=16)
      with video_pipe:
          input = fn.readers.video(
              device="gpu",
              filenames=video_files,
              sequence_length=32,
              stride=5,
          )
          video_pipe.set_outputs(input)
  
      video_pipe.build()
      out = video_pipe.run()
      in_seq = out[0].as_cpu().at(0)
      return in_seq
  
file_path: DALI/dali/test/python/operator_2/test_resize_seq.py
imports: import nvidia.dali
  import nvidia.dali.fn
  import nvidia.dali.types
  import numpy
  import os.path
  from test_utils import check_batch
  import PIL.Image
label_desc: Use image node_id 1 for calling a global function with example usage: init_video_data() and returns: in_seq