def METHOD_NAME(self):
    pattern = (
        r"'save' function for LambdaDataset must be a Callable\. "
        r"Object of type 'str' provided instead\."
    )
    with pytest.raises(DatasetError, match=pattern):
        LambdaDataset(None, "save")