def METHOD_NAME(self, segSlot):
    """
    Used to export both segmentation and labels
    """
    if not segSlot.ready():
        return None
    opLane = self.topLevelOperatorView
    colors = opLane.PmapColors.value
    colortable = []
    colortable.append(QColor(0, 0, 0, 0).rgba())  # transparent
    for color in colors:
        colortable.append(QColor(*color).rgba())
    segsrc = createDataSource(segSlot)
    seglayer = ColortableLayer(segsrc, colortable)
    return seglayer