MultiVolume with python script

How can I create multi volumes from python script and map them to different view nodes in slicer 3d?

It is quite limited what you can do with MultiVolume, for example you can only have one or two volumes extracted from a sequence. However, if you load the volume as a Volume Sequence then there are no such limitations.

You can find in this example how to show different volumes in slice views: https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Iterate_over_current_visible_slice_views.2C_and_set_foreground_and_background_images