code: def setColor(self, color):
      self.setPen(QtGui.QPen(color, self.width))
      self.color = color
  
file_path: PaddleSeg/EISeg/eiseg/widget/line.py
imports: from qtpy import QtWidgets, QtGui, QtCore
label_desc: Use image node_id 2 for calling the LineItem obj's underlying member method code with example usage: obj.setColor(color) without return types