code: def begin(self, state):
      if state not in self.lexstatere:
          raise ValueError("Undefined state")
      self.lexre = self.lexstatere[state]
      self.lexretext = self.lexstateretext[state]
      self.lexignore = self.lexstateignore.get(state, "")
      self.lexerrorf = self.lexstateerrorf.get(state, None)
      self.lexeoff = self.lexstateeoff.get(state, None)
      self.lexstate = state
  
imports: import re
  import sys
  import types
  import copy
  import os
  import inspect
label_desc: Use image node_id 6 for calling the Lexer obj's underlying member method code with example usage: obj.begin(state) without return types