code: def exportLabel(self, path):
      if not path or not osp.exists(osp.dirname(path)):
          print("label path don't exist")
          return
      with open(path, "w", encoding="utf-8") as f:
          for label in self.labelList:
              print(label.idx, end=" ", file=f)
              print(label.name, end=" ", file=f)
              for idx in range(3):
                  print(label.color[idx], end=" ", file=f)
              print(file=f)
  
imports: import os.path
  from .None import colorMap
label_desc: Use image node_id 7 for calling the LabelList obj's underlying member method code with example usage: obj.exportLabel(path) without return types