code: def read_video(num_sequences, num_frames, height, width, seed=42):
      roi_start = (90, 0)
      roi_end = (630, 1280)
      vid_filenames = [
          os.path.join(vid_dir, vid_file) for vid_file in vid_files
      ]
  
      @pipeline_def
      def pipeline():
          video = fn.readers.video_resize(
              filenames=vid_filenames,
              name="video reader",
              sequence_length=num_frames,
              file_list_include_preceding_frame=True,
              device="gpu",
              roi_start=roi_start,
              roi_end=roi_end,
              seed=seed,
              resize_x=width,
              resize_y=height,
          )
          return video
  
      pipe = pipeline(
          batch_size=num_sequences, device_id=0, num_threads=4
      )
      pipe.build()
      (batch,) = pipe.run()
      return [np.array(seq) for seq in batch.as_cpu()]
  
imports: import itertools
  import os
  import unittest
  import numpy
  from nvidia.dali import pipeline_def, fn, types
  from test_utils import get_dali_extra_path
  from nose_utils import assert_raises
  from nose2.tools import params
  from debayer_test_utils import bayer_patterns, blue_position, blue_position2pattern, rgb2bayer, rgb2bayer_seq, debayer_bilinear_npp_pattern, debayer_bilinear_npp_pattern_seq
label_desc: Use image node_id 2 for calling a global function with example usage: read_video(num_sequences, num_frames, height, width, seed) and returns: unknown, video