<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def i2c_slave_last_transmit_size(self):
 """Returns the number of bytes transmitted by the slave."""

        ret = api.py_aa_i2c_slave_write_stats(self.handle)
        _raise_error_if_negative(ret)
        return ret