def __createLabelmapSphereVolume__(self, array, radius):
        node = SlicerUtil.cloneVolume(self.currentLabelmap, "{0}_r{1}".format(self.currentVolume.GetName(), radius))
        arr = slicer.util.array(node.GetName())
        arr[:] = array
        node.GetImageData().Modified()
        # Set a different colormap for visualization purposes
        colorNode = slicer.util.getFirstNodeByClassByName("vtkMRMLColorTableNode", "HotToColdRainbow")
        displayNode = node.GetDisplayNode()
        displayNode.SetAndObserveColorNodeID(colorNode.GetID())
        return node
Create a Labelmap volume cloning the current global labelmap with the ROI sphere for visualization purposes
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/CIP_LesionModel/CIP_LesionModel.py/CIP_LesionModelLogic.__createLabelmapSphereVolume__