code: def interruptWrite(self, endpoint, data, timeout=0):
          
          # pylint: disable=undefined-variable
          endpoint = (endpoint & ~ENDPOINT_DIR_MASK) | ENDPOINT_OUT
          # pylint: enable=undefined-variable
          data, _ = create_initialised_buffer(data)
          return self._interruptTransfer(endpoint, data, sizeof(data), timeout)
docs: Synchronous interrupt write.
          endpoint: endpoint to send data to.
          data: data to send.
          timeout: in milliseconds, how long to wait for device acknowledgement.
            Set to 0 to disable.
  
          To avoid memory copies, use an object implementing the writeable buffer
          interface (ex: bytearray) for the "data" parameter.
  
          Returns the number of bytes actually sent.
  
          May raise an exception from the USBError family. USBErrorTimeout
          exception has a "transferred" property giving the number of bytes sent
          up to the timeout.