<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _set_led_value(self, group, val):
 """Set the LED value and confirm with a status check."""

        new_bitmask = set_bit(self._value, group, bool(val))
        self._set_led_bitmask(new_bitmask)