def METHOD_NAME(jsonl_file):
    """Test for JSONL memory-mapped datasets."""
    indexed_dataset = text_memmap_dataset.JSONLMemMapDataset(dataset_paths=[jsonl_file], header_lines=0)
    assert indexed_dataset[0] == {"name": "John", "age": 30}
    assert indexed_dataset[1] == {"name": "Jane", "age": 25}
    assert indexed_dataset[2] == {"name": "Bob", "age": 35}