code: def toggle(self):
          
          for device in self:
              if isinstance(device, (OutputDevice, CompositeOutputDevice)):
                  device.toggle()
docs: Toggle all the output devices. For each device, if it's on, turn it
          off; if it's off, turn it on.