def METHOD_NAME(self, mocker):
    fs_mock = mocker.patch("fsspec.filesystem").return_value
    filepath = "test.txt"
    data_set = TextDataSet(filepath=filepath)
    data_set.release()
    fs_mock.invalidate_cache.assert_called_once_with(filepath)