class_docstr: Base class for interpretations with instance-dependent state or parameters.
  
  Example usage::
  
      class MyInterpretation(StatefulInterpretation):
  
          def __init__(self, my_param):
              self.my_param = my_param
  
      @MyInterpretation.register(...)
      def my_impl(interpretation_state, cls, *args):
          my_param = interpretation_state.my_param
          ...
  
      with MyInterpretation(my_param=0.1):
          ...
class_docstr_tok: ["Base","class","for","interpretations","with","instance-dependent","state","or","parameters",".","Example","usage",":",":","class","MyInterpretation","(","StatefulInterpretation",")",":","def","__init__","(","self",",","my_param",")",":","self.my_param","=","my_param","@","MyInterpretation.register","(","...",")","def","my_impl","(","interpretation_state",",","cls",",","*","args",")",":","my_param","=","interpretation_state.my_param","...","with","MyInterpretation","(","my_param=0.1",")",":","..."]
code: def __init__(self, name="stateful"):
      super().__init__(name)
  
imports: from abc import ABC, abstractmethod
  from collections.abc import Hashable
  from contextlib import ContextDecorator, contextmanager
  from timeit import default_timer
  from .None import instrument
  from .interpreter import get_interpretation, pop_interpretation, push_interpretation
  from .registry import KeyedRegistry
  from .util import get_backend
label_desc: Use image node_id 1 to create a new StatefulInterpretation object from inherited base classes: Interpretation with example: obj = StatefulInterpretation(name)