[docs]classSlicer(_RawSubjectCopySubject):"""Sample data provided by `3D Slicer <https://www.slicer.org/>`_. See `the Slicer wiki <https://www.slicer.org/wiki/SampleData>`_ for more information. For information about licensing and permissions, check the `Sample Data module <https://github.com/Slicer/Slicer/blob/31c89f230919a953e56f6722718281ce6da49e06/Modules/Scripted/SampleData/SampleData.py#L75-L81>`_. Args: name: One of the keys in :attr:`torchio.datasets.slicer.URLS_DICT`. """# noqa: B950def__init__(self,name='MRHead'):filenames,url_files=URLS_DICT[name]forfilename,url_fileinzip(filenames,url_files):filename=filename.replace('-','_')url=urllib.parse.urljoin(SLICER_URL,url_file)download_root=get_torchio_cache_dir()/'slicer'stem=filename.split('.')[0]download_url(url,download_root,filename=filename,)super().__init__({stem:ScalarImage(download_root/filename),# use last filename})