class_docstr: SumoTrafficLight holds all the necessary data to define a traffic light in sumo:
  
      * connections (tlid, from_road, to_road, from_lane, to_lane, link_index).
      * phases (duration, state, min_dur, max_dur, nex, name).
      * parameters.
class_docstr_tok: ["SumoTrafficLight","holds","all","the","necessary","data","to","define","a","traffic","light","in","sumo",":","*","connections","(","tlid",",","from_road",",","to_road",",","from_lane",",","to_lane",",","link_index",")",".","*","phases","(","duration",",","state",",","min_dur",",","max_dur",",","nex",",","name",")",".","*","parameters","."]
code: def __init__(self, tlid, program_id="0", offset=0, tltype="static"):
      self.id = tlid
      self.program_id = program_id
      self.offset = offset
      self.type = tltype
  
      self.phases = []
      self.parameters = set()
      self.connections = set()
  
imports: import argparse
  import bisect
  import collections
  import logging
  import shutil
  import subprocess
  import tempfile
  import lxml.etree
  import glob
  import os
  import sys
  import carla
  import sumolib
label_desc: Use image node_id 1 to create a new SumoTrafficLight object from inherited base classes: object with example: obj = SumoTrafficLight(tlid, program_id, offset, tltype)