<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_type_icon(self, index):
 """Set the type icon on type_icon_lb :param index: the index :type index: :class:`QtGui.QModelIndex` :returns: None :rtype: None :raises: None """

        icon = index.model().index(index.row(), 0, index.parent()).data(QtCore.Qt.DecorationRole)
        if icon:
            pix = icon.pixmap(self.type_icon_lb.size())
            self.type_icon_lb.setPixmap(pix)
        else:
            self.type_icon_lb.setPixmap(None)