def METHOD_NAME(self) -> Set[str]:
    logger.info("Getting all matrices used in datasets")
    datasets = self.dataset_repository.get_all_datasets()
    return {matrix.matrix_id for dataset in datasets for matrix in dataset.matrices}