I already know that using for example GPIO.output(led_pin, led_state)
I can turn on and off an LED.
What I would like to have, is to adjust the brightness of an LED, either by an absolute value (in whatever measurement unit) or by a percentage. Something like led_brightness(led_pin, 50) # 50% brightness
.