code: def video_pipe(file_root):
      video, label = fn.readers.video(
          device="gpu",
          file_root=file_root,
          sequence_length=COUNT,
          shard_id=0,
          num_shards=1,
          random_shuffle=False,
          normalized=True,
          image_type=types.YCbCr,
          dtype=types.FLOAT,
      )
      # instead of file_root, path to text file with pairs video_filepath label_value can be provided:
      # self.input = fn.readers.video(
      #     device="gpu", file_list="file_list.txt", sequence_length=COUNT, ...
      # )
      return video, label
  
imports: import os
  import numpy
  from nvidia.dali import pipeline_def
  import nvidia.dali.fn
  import nvidia.dali.types
label_desc: Use image node_id 2 for calling a global function with example usage: video_pipe(file_root) and returns: video,  label