code: def write(self, data):
          
  
          begin, end, size = 0, 0, len(data)
          bytes_sent = 0
  
          raw_write = super(USBRawDevice, self).write
  
          while not end > size:
              begin = end
              end = begin + self.RECV_CHUNK
              bytes_sent += raw_write(data[begin:end])
  
          return bytes_sent
docs: Send raw bytes to the instrument.
  
          :param data: bytes to be sent to the instrument
          :type data: bytes