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
    """
    bmRequestType = usb.util.build_request_type(
        usb.util.ENDPOINT_OUT,
        usb.util.CTRL_TYPE_CLASS,
        usb.util.CTRL_RECIPIENT_INTERFACE
        )
    result = self.dev.ctrl_transfer(
        bmRequestType=bmRequestType,
        bRequest=usb.REQ_SET_CONFIGURATION,
        data_or_wLength=buf,
        wValue=0x200,
        timeout=50)
    if result != len(buf):
        raise IOError('pywws.device_pyusb1.USBDevice.write_data failed')
    return True