code: def send_video_frame(self, frame):
          
          if self.video_pipe is None:
              if not os.path.exists('/tmp/videopipe'):
                  os.mkfifo('/tmp/videopipe')
              self.video_pipe = os.open('/tmp/videopipe', os.O_WRONLY)
  
          assert frame.shape == (self.height, self.width, 3)
  
          frame = np.clip(255*frame, 0, 255).astype('uint8')
          try:
              os.write(self.video_pipe, frame.tostring())
          except OSError:
              # The pipe has been closed. Reraise and handle it further
              # downstream
              raise
docs: Send frame of shape (height, width, 3)
          with values between 0 and 1.
          Raises an OSError when the stream is closed.
  
          :param frame: array containing the frame.
          :type frame: numpy array with shape (height, width, 3)
              containing values between 0.0 and 1.0