class_docstr: CarlaSimulation is responsible for the management of the carla simulation.
class_docstr_tok: ["CarlaSimulation","is","responsible","for","the","management","of","the","carla","simulation","."]
docstr: Updates traffic light state.
  
      :param landmark_id: id of the landmark to be updated.
      :param state: new traffic light state.
      :return: True if successfully updated. Otherwise, False.
docstr_tok: ["Updates","traffic","light","state",".",":","param","landmark_id",":","id","of","the","landmark","to","be","updated",".",":","param","state",":","new","traffic","light","state",".",":","return",":","True","if","successfully","updated",".","Otherwise",",","False","."]
code: def synchronize_traffic_light(self, landmark_id, state):
      """
      Updates traffic light state.
  
          :param landmark_id: id of the landmark to be updated.
          :param state: new traffic light state.
          :return: True if successfully updated. Otherwise, False.
      """
      if not landmark_id in self._tls:
          logging.warning("Landmark %s not found in carla", landmark_id)
          return False
  
      traffic_light = self._tls[landmark_id]
      traffic_light.set_state(state)
      return True
  
file_path: carla/Co-Simulation/Sumo/sumo_integration/carla_simulation.py
imports: import logging
  import carla
  from .constants import INVALID_ACTOR_ID, SPAWN_OFFSET_Z
label_desc: Use image node_id 10 for calling the CarlaSimulation obj's underlying member method code with example usage: obj.synchronize_traffic_light(landmark_id, state) and returns: True, False