def METHOD_NAME(self, buf):
    """Send data to the device.
    If the write fails for any reason, an :obj:`IOError` exception
    is raised.
    :param buf: the data to send.
    :type buf: list(int)
    :return: success status.
    :rtype: bool
    """
    result = self.devh.controlMsg(
        usb.ENDPOINT_OUT + usb.TYPE_CLASS + usb.RECIP_INTERFACE,
        usb.REQ_SET_CONFIGURATION, buf, value=0x200, timeout=50)
    if result != len(buf):
        raise IOError('pywws.device_libusb.USBDevice.write_data failed')
    return True