Get label map node from segmentation node

Awesome! Do you know how I might do this through the python code?

Found it:

slicer.modules.segmentations.logic().ExportSegmentsToLabelmapNode()