def METHOD_NAME(type, dictionary):
    split_path = get_path(type, split)
    dataset = data_utils.load_indexed_dataset(
        split_path,
        self.source_dictionary,
        self.args.dataset_impl,
        combine=combine,
    )
    return dataset