code: def __init__(self, batch_size, file_root, sequence_length, crop_size):
      container_files = os.listdir(file_root)
      container_files = [file_root + "/" + f for f in container_files]
      self.pipeline = create_video_reader_pipeline(
          batch_size=batch_size,
          sequence_length=sequence_length,
          num_threads=2,
          device_id=0,
          files=container_files,
          crop_size=crop_size,
      )
      self.pipeline.build()
      self.epoch_size = self.pipeline.epoch_size("Reader")
      self.dali_iterator = pytorch.DALIGenericIterator(
          self.pipeline,
          ["data"],
          reader_name="Reader",
          last_batch_policy=pytorch.LastBatchPolicy.PARTIAL,
          auto_reset=True,
      )
  
file_path: DALI/docs/examples/use_cases/video_superres/dataloading/dataloaders.py
imports: import sys
  import copy
  from glob import glob
  import math
  import os
  import torch
  from torch.utils.data import DataLoader
  from dataloading.datasets import imageDataset
  from nvidia.dali.pipeline import pipeline_def
  from nvidia.dali.plugin import pytorch
  import nvidia.dali.fn
  import nvidia.dali.types
label_desc: Use image node_id 1 to create a new DALILoader object  with example: obj = DALILoader(batch_size, file_root, sequence_length, crop_size)