def METHOD_NAME(self):
    if 'dataset_files' in self.setup_conf:
        self.setup_iterable_files()
    elif 'dataset_parts' in self.setup_conf:
        self.setup_iterable_parts()
    else:
        raise AttributeError(f'Missing dataset definition. One of `dataset_parts` or `dataset_files` expected')