def METHOD_NAME(self):
    paths = {}
    for study in dft.get_studies(self.dicom_path, self.followlinks):
        pd = paths.setdefault(study.patient_name_or_uid(), {})
        patient_info = 'patient information\n'
        patient_info += f'name: {study.patient_name}\n'
        patient_info += f'ID: {study.patient_id}\n'
        patient_info += f'birth date: {study.patient_birth_date}\n'
        patient_info += f'sex: {study.patient_sex}\n'
        pd['INFO'] = patient_info.encode('ascii', 'replace')
        study_datetime = f'{study.date}_{study.time}'
        study_info = 'study info\n'
        study_info += f'UID: {study.uid}\n'
        study_info += f'date: {study.date}\n'
        study_info += f'time: {study.time}\n'
        study_info += f'comments: {study.comments}\n'
        d = {'INFO': study_info.encode('ascii', 'replace')}
        for series in study.series:
            series_info = 'series info\n'
            series_info += f'UID: {series.uid}\n'
            series_info += f'number: {series.number}\n'
            series_info += f'description: {series.description}\n'
            series_info += 'rows: %d\n' % series.rows
            series_info += 'columns: %d\n' % series.columns
            series_info += 'bits allocated: %d\n' % series.bits_allocated
            series_info += 'bits stored: %d\n' % series.bits_stored
            series_info += 'storage instances: %d\n' % len(series.storage_instances)
            d[series.number] = {
                'INFO': series_info.encode('ascii', 'replace'),
                f'{series.number}.nii': (series.nifti_size, series.as_nifti),
                f'{series.number}.png': (series.png_size, series.as_png),
            }
        pd[study_datetime] = d
    return paths