code: def test_nfa():
      nfa = fsa.NFA(0)
      nfa.add_transition(0, "a", 1)
      nfa.add_transition(0, fsa.EPSILON, 4)
      nfa.add_transition(0, "b", 1)
      nfa.add_transition(1, "c", 4)
      nfa.add_final_state(4)
  
      assert nfa.accept("")
      assert nfa.accept("ac")
      assert nfa.accept("bc")
      assert not nfa.accept("c")
  
imports: import gzip
  import os.path
  from bisect import bisect_left
  from whoosh.compat import permutations
  from whoosh.compat import xrange
  from whoosh.automata import fsa, glob, lev
  from whoosh.support.levenshtein import levenshtein
label_desc: Use image node_id 1 for calling a global function with example usage: test_nfa() without return types