code: def __init__(self, labels: dict = None):
      self.labelList = []
      if labels is not None:
          for lab in labels:
              color = lab.get("color", colorMap.get_color())
              self.add(lab["id"], lab["name"], color)
  
imports: import os.path
  from .None import colorMap
label_desc: Use image node_id 1 to create a new LabelList object from inherited base classes: object with example: obj = LabelList(labels)