Generating augmented training data from nrrd file using random translations, rotations, and deformations

Can you tell us a bit more about what you are trying to achieve?

Slicer segmentations are standard 3D or 4D nrrd files with additional metadata, which can be read with any nrrd reader. For 3D medical image visualization in Python, I would recommend to use Slicer. I have not seen anything that would even come close to it. You can even use it from Jupyter notebooks.