code: def from_int(cls, i: int) -> ContextSize:
      for context_size in cls:
          if context_size.value == i:
              return context_size
      raise ValueError(f"{i} is not a valid ContextSize")
  
imports: from __future__ import annotations
  import logging
  import re
  from abc import ABC, abstractmethod
  from enum import Enum
  from typing import Any, Optional, Sequence, Union
  from neuron_explainer.activations.activation_records import calculate_max_activation, format_activation_records, non_zero_activation_proportion
  from neuron_explainer.activations.activations import ActivationRecord
  from neuron_explainer.api_client import ApiClient
  from neuron_explainer.explanations.few_shot_examples import FewShotExampleSet
  from neuron_explainer.explanations.prompt_builder import HarmonyMessage, PromptBuilder, PromptFormat, Role
  from neuron_explainer.explanations.token_space_few_shot_examples import TokenSpaceFewShotExampleSet
label_desc: Use image node_id 1 for calling the ContextSize obj's underlying member method code with example usage: obj.from_int(cls, i) and returns: context_size