code: def test_overlaps2():
      nlp = spacy.blank("en")
      keywords = [
          "a bc",
          "b",
      ]
  
      model = PatternSearcher.get_model_from_words(keywords)
      pipe = PatternSearcher(
          model,
          lower=True,
          lemma=True,
      )
      nlp.add_pipe(pipe)
  
      doc = nlp("a bc ")
      assert [s.text for s in doc.ents] == ["a bc"]
  
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 5 for calling a global function with example usage: test_overlaps2() without return types