code: def read(self, size):
          
  
          raw_read = super(USBRawDevice, self).read
  
          received = bytearray()
  
          while not len(received) >= size:
              resp = raw_read(self.RECV_CHUNK)
  
              received.extend(resp)
  
          return bytes(received)
docs: Read raw bytes from the instrument.
  
          :param size: amount of bytes to be sent to the instrument
          :type size: integer
          :return: received bytes
          :return type: bytes