if someone using pytorch than it would a problem for beginner that how they load the nii format image into their memory and further processed using pytorch method. Nibable is library which load all kind of 3D and 4D scans but how this will load using pytroch syntax and further more how the whole directory can be read using pytorch