code: def flush_buffers(self):
      
      while True:
        try:
          self.read(FLUSH_READ_SIZE, timeout_ms=10)
        except usb_exceptions.LibusbWrappingError as exception:
          if exception.is_timeout():
            break
          raise
docs: Default implementation, calls Read() until it blocks.