code: def choice(self, n1, n2):
      s = self.new_state()
      s1 = self.new_state()
      s2 = self.new_state()
      e1 = self.new_state()
      e2 = self.new_state()
      e = self.new_state()
      nfa = NFA(s)
      nfa.add_transition(s, EPSILON, s1)
      nfa.add_transition(s, EPSILON, s2)
      nfa.insert(s1, n1, e1)
      nfa.insert(s2, n2, e2)
      nfa.add_transition(e1, EPSILON, e)
      nfa.add_transition(e2, EPSILON, e)
      nfa.add_final_state(e)
      return nfa
  
file_path: whoosh/src/whoosh/automata/reg.py
imports: from whoosh.automata.fsa import ANY, EPSILON, NFA
label_desc: Use image node_id 7 for calling the RegexBuilder obj's underlying member method code with example usage: obj.choice(n1, n2) and returns: nfa