code: def __enter__(self):
      global SYM_FUNCTION_MODE
      old = SYM_FUNCTION_MODE
      if hasattr(self, "inner"):
          raise RuntimeError(
              f"{self} has already been used as a mode. Please use a fresh version"
          )
      else:
          self.inner = old
      SYM_FUNCTION_MODE = self
      return self
  
imports: from typing import List, Type
label_desc: Use image node_id 2 for calling the SymDispatchMode obj's underlying member method code with example usage: obj.__enter__() and returns: self