code: def _create_automaton(self):
      automaton = ahocorasick.Automaton()
      for term in self.internal_termbase:
          automaton.add_word(term[0], (term[0], term[1]))
      automaton.make_automaton()
      return automaton
  
imports: from onmt.utils.logging import logger
  from onmt.transforms import register_transform
  from .transform import Transform
  import spacy
  import ahocorasick
  import re
label_desc: Use image node_id 3 for calling the TermMatcher obj's underlying member method code with example usage: obj._create_automaton() and returns: automaton