code: def test_matcher_end_zero_plus(en_vocab):
      """Test matcher works when patterns end with * operator. (issue 1450)"""
      matcher = Matcher(en_vocab)
      pattern = [{"ORTH": "a"}, {"ORTH": "b", "OP": "*"}]
      matcher.add("TSTEND", [pattern])
      nlp = lambda string: Doc(matcher.vocab, words=string.split())
      assert len(matcher(nlp("a"))) == 1
      assert len(matcher(nlp("a b"))) == 2
      assert len(matcher(nlp("a c"))) == 1
      assert len(matcher(nlp("a b c"))) == 2
      assert len(matcher(nlp("a b b c"))) == 3
      assert len(matcher(nlp("a b b"))) == 3
  
imports: import re
  import pytest
  from spacy.attrs import IS_PUNCT, LOWER, ORTH
  from spacy.errors import MatchPatternError
  from spacy.lang.en import English
  from spacy.lang.lex_attrs import LEX_ATTRS
  from spacy.matcher import Matcher
  from spacy.tokens import Doc, Span, Token
  from spacy.vocab import Vocab
label_desc: Use image node_id 36 for calling a global function with example usage: test_matcher_end_zero_plus(en_vocab) without return types