pub fn write_trx( path: &Path, tractogram: &Tractogram, ref_nifti: Option<&Path>, ) -> Result<(), Box<dyn Error>>