CreateDefaultVolumeRenderingNodes always return None

Hello community!

I was using a custom script to display 3D dicom stacks but since I updated 3DSlicer version (from 4.11.0 to 5.0.3) my script is not working anymore.
I am no more able to get the ROI node from a volume using the ‘CreateDefaultVolumeRenderingNodes’ function (always return None) as show below :
On 4.11.0 version :
ID: vtkMRMLGPURayCastVolumeRenderingDisplayNode1
ClassName: vtkMRMLGPURayCastVolumeRenderingDisplayNode
Name: VolumeRendering
[…]
Node references:
roi [ROINodeID]: vtkMRMLAnnotationROINode1
shaderProperty [shaderPropertyNodeId]: (none)
volumeProperty [volumePropertyNodeID]: vtkMRMLVolumePropertyNode1

On 5.0.3 version :
ID: vtkMRMLGPURayCastVolumeRenderingDisplayNode1
ClassName: vtkMRMLGPURayCastVolumeRenderingDisplayNode
[ …]
Node references:
roi [ROINodeID]: (none)
shaderProperty [shaderPropertyNodeId]: (none)
volumeProperty [volumePropertyNodeID]: vtkMRMLVolumePropertyNode1

Do you know can I get back the roi Node ID ?
Are there lots of incompatibilities between consecutives 3DSlicer software versions ?
Thank you so much for your help

CreateDefaultVolumeRenderingNodes unnecessarily polluted the scene with ROI node even though the user did not need cropping. In Slicer-5.x we fixed the issue by not creating the ROI nodes automatically, but you can CreateROINode if you need an ROI node.