code: def nlp(lang: str):
      _nlp = spacy.blank(lang)
      model = PatternSearcher.get_model_from_words(KEYWORDS)
      pipe = PatternSearcher(
          model,
          lower=True,
          lemma=True,
          normalizer=lambda x: re.sub(r"\W", "", x.text),
      )
      _nlp.add_pipe(pipe)
      return _nlp
  
file_path: camphr/packages/camphr_pattern_search/tests/test_pattern_search.py
imports: import re
  from typing import List
  import pytest
  import spacy
  from spacy.language import Language
  from spacy.tokens import Doc
  from spacy.tokens.span import Span
  from camphr_pattern_search import PatternSearcher
label_desc: Use image node_id 2 for calling a global function with example usage: nlp(lang) and returns: _nlp