code: def __init__(
      self,
      src=0,
      usePiCamera=False,
      resolution=(320, 240),
      framerate=32,
      **kwargs,
  ):
      # check to see if the picamera module should be used
      if usePiCamera:
          # only import the picamera packages unless we are
          # explicity told to do so -- this helps remove the
          # requirement of `picamera[array]` from desktops or
          # laptops that still want to use the `imutils` package
          from .pivideostream import PiVideoStream
  
          # initialize the picamera stream and allow the camera
          # sensor to warmup
          self.stream = PiVideoStream(
              resolution=resolution, framerate=framerate, **kwargs
          )
  
      # otherwise, we are using OpenCV so initialize the webcam
      # stream
      else:
          self.stream = WebcamVideoStream(src=src)
  
imports: from .webcamvideostream import WebcamVideoStream
label_desc: Use image node_id 1 to create a new VideoStream object  with example: obj = VideoStream(src, usePiCamera, resolution, framerate)