class_docstr: How to simulate neuron activations. Values correspond to subclasses of NeuronSimulator.
class_docstr_tok: ["How","to","simulate","neuron","activations",".","Values","correspond","to","subclasses","of","NeuronSimulator","."]
code: def from_string(cls, s: str) -> SimulationType:
      for simulation_type in SimulationType:
          if simulation_type.value == s:
              return simulation_type
      raise ValueError(f"Invalid simulation type: {s}")
  
imports: from __future__ import annotations
  import asyncio
  import logging
  from abc import ABC, abstractmethod
  from collections import OrderedDict
  from enum import Enum
  from typing import Any, Optional, Sequence, Union
  import numpy
  from neuron_explainer.activations.activation_records import calculate_max_activation, format_activation_records, format_sequences_for_simulation, normalize_activations
  from neuron_explainer.activations.activations import ActivationRecord
  from neuron_explainer.api_client import ApiClient
  from neuron_explainer.explanations.explainer import EXPLANATION_PREFIX
  from neuron_explainer.explanations.explanations import ActivationScale, SequenceSimulation
  from neuron_explainer.explanations.few_shot_examples import FewShotExampleSet
  from neuron_explainer.explanations.prompt_builder import HarmonyMessage, PromptBuilder, PromptFormat, Role
label_desc: Use image node_id 1 for calling the SimulationType obj's underlying member method code with example usage: obj.from_string(cls, s) and returns: simulation_type