class_docstr: SumoTLLogic holds the data relative to a traffic light in sumo.
class_docstr_tok: ["SumoTLLogic","holds","the","data","relative","to","a","traffic","light","in","sumo","."]
code: def __init__(self, tlid, states, parameters):
      self.tlid = tlid
      self.states = states
  
      self._landmark2link = {}
      self._link2landmark = {}
      for link_index, landmark_id in parameters.items():
          # Link index information is added in the parameter as 'linkSignalID:x'
          link_index = int(link_index.split(":")[1])
  
          if landmark_id not in self._landmark2link:
              self._landmark2link[landmark_id] = []
          self._landmark2link[landmark_id].append((tlid, link_index))
          self._link2landmark[(tlid, link_index)] = landmark_id
  
imports: import collections
  import enum
  import logging
  import os
  import carla
  import sumolib
  import traci
  from .constants import INVALID_ACTOR_ID
  import lxml.etree
label_desc: Use image node_id 1 to create a new SumoTLLogic object from inherited base classes: object with example: obj = SumoTLLogic(tlid, states, parameters)