'Set the node item\'s icon (:class:`QIcon`).'

def setIcon(self, icon):

    if isinstance(icon, QIcon):
        self.icon_item = GraphicsIconItem(self.shapeItem, icon=icon, iconSize=QSize(36, 36))
        self.icon_item.setPos((-18), (-18))
    else:
        raise TypeError
