code: def new_state(self):
      self.statenum += 1
      return self.statenum
  
file_path: whoosh/src/whoosh/automata/reg.py
imports: from whoosh.automata.fsa import ANY, EPSILON, NFA
label_desc: Use image node_id 2 for calling the RegexBuilder obj's underlying member method code with example usage: obj.new_state() and returns: self