code: def all_off(self):
          
  
          # If this is a platform without LEDs there is nothing to do
          if not self.leds:
              return
  
          for led in self.leds.values():
              led.brightness = 0
docs: Turn all LEDs off