def brightness_mode(self, mode: BrightnessMode):
        """
        Set screen brightness mode
        
        Args:
            mode: BrightnessMode.AUTO or BrightnessMode.MANUAL

        Example:
            d.brightness_mode = BrightnessMode.AUTO
        """
        if isinstance(mode, BrightnessMode):
            self.shell(f"settings put system screen_brightness_mode {mode.value}")
        else:
            raise ValueError("Brightness mode must be an instance of BrightnessMode")

        Set screen brightness mode
        
        Args:
            mode: BrightnessMode.AUTO or BrightnessMode.MANUAL

        Example:
            d.brightness_mode = BrightnessMode.AUTO
        
adbutils/shell.py