def set_tl_state(traffic_lights, traffic_light_state):
    """Sets all traffic lights in the `traffic_lights` list to the given state.

    Args:
        traffic_lights (list): List of carla.TrafficLight actors
        traffic_light_state (carla.TrafficLightState):  The state to set the
            lights

    Returns:
        None

    """
    for traffic_light in traffic_lights:
        traffic_light.set_state(traffic_light_state)
