code: def importLabel(self, path):
      if not osp.exists(path):
          return []
      with open(path, "r", encoding="utf-8") as f:
          labels = f.readlines()
      labelList = []
      for lab in labels:
          lab = lab.replace("\n", "").strip(" ").split(" ")
          if len(lab) != 5:  # rm: and len(lab) != 2
              print(f"{lab} 标签不合法")
              continue
          label = Label(
              self.toint(lab[0]), str(lab[1]), self.toint(lab[2:])
          )
          labelList.append(label)
      self.labelList = labelList
  
imports: import os.path
  from .None import colorMap
label_desc: Use image node_id 6 for calling the LabelList obj's underlying member method code with example usage: obj.importLabel(path) and returns: list