def load_neuron_explanations(
    explanations_path: str, layer_index: str | int, neuron_index: str | int
) -> NeuronSimulationResults | None:
    """Load scored explanations for the specified neuron."""
    file = osp.join(explanations_path, str(layer_index), f"{neuron_index}.jsonl")
    if not file_exists(file):
        return None
    with CustomFileHandler(file) as f:
        for line in f:
            return loads(line)
    return None
Load scored explanations for the specified neuron.
neuron_explainer/explanations/explanations.py