code: def _build_tokenizer(vec):
      token_pattern = re.compile(vec.token_pattern)
      tokenizer = lambda doc: [
          (m.span(), m.group()) for m in re.finditer(token_pattern, doc)
      ]
      return tokenizer
  
file_path: eli5/eli5/sklearn/_span_analyzers.py
imports: from __future__ import absolute_import
  import re
  from six.moves import xrange
label_desc: Use image node_id 2 for calling a global function with example usage: _build_tokenizer(vec) and returns: tokenizer