code: def __init__(self, path, transform=None, queue_size=128):
      # initialize the file video stream along with the boolean
      # used to indicate if the thread should be stopped or not
      self.stream = cv2.VideoCapture(path)
      self.stopped = False
      self.transform = transform
  
      # initialize the queue used to store frames read from
      # the video file
      self.Q = Queue(maxsize=queue_size)
      # intialize thread
      self.thread = Thread(target=self.update, args=())
      self.thread.daemon = True
  
file_path: imutils/imutils/video/filevideostream.py
imports: from threading import Thread
  import sys
  import cv2
  import time
label_desc: Use image node_id 1 to create a new FileVideoStream object  with example: obj = FileVideoStream(path, transform, queue_size)