def from_string()

in neuron-explainer/neuron_explainer/explanations/few_shot_examples.py [0:0]


    def from_string(cls, string: str) -> FewShotExampleSet:
        for example_set in FewShotExampleSet:
            if example_set.value == string:
                return example_set
        raise ValueError(f"Unrecognized example set: {string}")