code: def test_issue850():
      """The variable-length pattern matches the succeeding token. Check we
      handle the ambiguity correctly."""
      vocab = Vocab(
          lex_attr_getters={LOWER: lambda string: string.lower()}
      )
      matcher = Matcher(vocab)
      pattern = [{"LOWER": "bob"}, {"OP": "*"}, {"LOWER": "frank"}]
      matcher.add("FarAway", [pattern])
      doc = Doc(matcher.vocab, words=["bob", "and", "and", "frank"])
      match = matcher(doc)
      assert len(match) == 1
      ent_id, start, end = match[0]
      assert start == 0
      assert end == 4
  
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 10 for calling a global function with example usage: test_issue850() without return types