How would you implement control logic for a power system using straightforward conditional statements to cover multiple operating conditions?
Implement evaluate_power_system(battery_state, solar_available, load_level, fault). Return "shutdown" when a fault is present, "emergency_power" for a critical battery, "reduce_load" for a low battery with high load, "charge" when solar is available and the battery is not full, and "power_load" otherwise. Inputs are strings, booleans, and strings respectively. For example, ("low", true, "normal", false) returns "charge"; ("full", false, "normal", false) returns "power_load".
def evaluate_power_system(battery_state, solar_available, load_level, fault):