def METHOD_NAME(self):
    layers = []
    opLane = self.topLevelOperatorView
    # This code depends on a specific order for the export slots.
    # If those change, update this function!
    selection_names = opLane.SelectionNames.value
    # see comment above
    for name, expected in zip(selection_names[0:1], ["Probabilities", "Labels"]):
        assert name.startswith(expected), "The Selection Names don't match the expected selection names."
    selection = selection_names[opLane.InputSelection.value]
    if selection.startswith("Probabilities"):
        exportedLayers = self._initPredictionLayers(opLane.ImageToExport)
        for layer in exportedLayers:
            layer.visible = False
            layer.name = layer.name + "- Exported"
        layers += exportedLayers
    elif selection.startswith("Labels"):
        previewLayer = self._initColortablelayer(opLane.ImageToExport)
        if previewLayer:
            previewLayer.visible = False
            previewLayer.name = selection + " - Preview"
            layers.append(previewLayer)
    # If available, also show the raw data layer
    rawSlot = opLane.FormattedRawData
    if rawSlot.ready():
        rawLayer = self.createStandardLayerFromSlot(rawSlot)
        rawLayer.name = "Raw Data"
        rawLayer.visible = True
        rawLayer.opacity = 1.0
        layers.append(rawLayer)
    return layers