code: def write_byte_data(self, i2c_addr, register, value, force=None):
          
          self._set_address(i2c_addr, force=force)
          msg = i2c_smbus_ioctl_data.create(
              read_write=I2C_SMBUS_WRITE, command=register, size=I2C_SMBUS_BYTE_DATA
          )
          msg.data.contents.byte = value
          ioctl(self.fd, I2C_SMBUS, msg)
docs: Write a byte to a given register.
  
          :param i2c_addr: i2c address
          :type i2c_addr: int
          :param register: Register to write to
          :type register: int
          :param value: Byte value to transmit
          :type value: int
          :param force:
          :type force: Boolean
          :rtype: None