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: Accessor for traffic light state.
  
  If the traffic ligth does not exist, returns None.
docstr_tok: ["Accessor","for","traffic","light","state",".","If","the","traffic","ligth","does","not","exist",",","returns","None","."]
code: def get_traffic_light_state(self, landmark_id):
      """
      Accessor for traffic light state.
  
      If the traffic ligth does not exist, returns None.
      """
      if landmark_id not in self._tls:
          return None
      return self._tls[landmark_id].state
  
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 5 for calling the CarlaSimulation obj's underlying member method code with example usage: obj.get_traffic_light_state(landmark_id) and returns: self, None