def METHOD_NAME(self, size):
    """Receive data from the device.
    If the read fails for any reason, an :obj:`IOError` exception
    is raised.
    :param size: the number of bytes to read.
    :type size: int
    :return: the data received.
    :rtype: list(int)
    """
    result = self.devh.interruptRead(0x81, size, 1200)
    if result is None or len(result) < size:
        raise IOError('pywws.device_libusb.USBDevice.read_data failed')
    return list(result)