code: def test_glob_star():
      nfa = glob.glob_automaton("a*c")
      assert not nfa.accept("a")
      assert not nfa.accept("c")
      assert nfa.accept("ac")
      assert nfa.accept("abc")
      assert nfa.accept("abcc")
      assert nfa.accept("abcac")
      assert nfa.accept("aaaaaaaaaac")
      assert not nfa.accept("abb")
  
      dfa = nfa.to_dfa()
      assert not dfa.accept("a")
      assert not dfa.accept("c")
      assert dfa.accept("ac")
      assert dfa.accept("abc")
      assert dfa.accept("abcc")
      assert dfa.accept("abcac")
      assert not dfa.accept("abb")
  
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 6 for calling a global function with example usage: test_glob_star() without return types