LED control

Hello, I am trying to use the LEDS on the cam h7 to show me if the camera is working when I remove the USB from it cause I cant tell if its working only with the USB in. I cant seem to find or figure out how the code for the LED is suppose to go and I keep getting errors.

Hi, please see the example for controlling LEDs in File->Examples->Board-Control->led_control.py also Basics->main.py