code: def test_issue1450(string, start, end):
      """Test matcher works when patterns end with * operator."""
      pattern = [{"ORTH": "a"}, {"ORTH": "b", "OP": "*"}]
      matcher = Matcher(Vocab())
      matcher.add("TSTEND", [pattern])
      doc = Doc(Vocab(), words=string.split())
      matches = matcher(doc)
      if start is None or end is None:
          assert matches == []
      assert matches[-1][1] == start
      assert matches[-1][2] == end
  
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 13 for calling a global function with example usage: test_issue1450(string, start, end) without return types