def METHOD_NAME(self) -> Any:
    if not self.__load:
        raise DatasetError(
            "Cannot load data set. No 'load' function "
            "provided when LambdaDataset was created."
        )
    return self.__load()