def METHOD_NAME(split, text_path, tmp_path):
    cache_dir = tmp_path / "cache"
    expected_features = {"text": "string"}
    dataset = TextDatasetReader(text_path, cache_dir=cache_dir, split=split).read()
    _check_text_dataset(dataset, expected_features)
    assert dataset.split == split if split else "train"