def METHOD_NAME(
    self, endpoint: int, data: ReadableBuffer, timeout: Optional[int] = None
) -> int:
    """Write data to a specific endpoint on the device.
    :param int endpoint: the bEndpointAddress you want to communicate with.
    :param ReadableBuffer data: the data to send
    :param int timeout: Time to wait specified in milliseconds. (Different from most CircuitPython!)
    :returns: the number of bytes written
    """
    ...