code: def test_en_sentence_breaks(en_vocab, en_parser):
      # fmt: off
      words = ["This", "is", "a", "sentence", ".", "This", "is", "another", "one", "."]
      heads = [1, 1, 3, 1, 1, 6, 6, 8, 6, 6]
      deps = ["nsubj", "ROOT", "det", "attr", "punct", "nsubj", "ROOT", "det",
              "attr", "punct"]
      transition = ["L-nsubj", "S", "L-det", "R-attr", "D", "R-punct", "B-ROOT",
                    "L-nsubj", "S", "L-attr", "R-attr", "D", "R-punct"]
      # fmt: on
      doc = Doc(en_vocab, words=words, heads=heads, deps=deps)
      apply_transition_sequence(en_parser, doc, transition)
      assert len(list(doc.sents)) == 2
      for token in doc:
          assert token.dep != 0 or token.is_space
      assert [token.head.i for token in doc] == [
          1,
          1,
          3,
          1,
          1,
          6,
          6,
          8,
          6,
          6,
      ]
  
imports: import pytest
  from spacy.tokens import Doc
  from ...util import apply_transition_sequence
label_desc: Use image node_id 3 for calling a global function with example usage: test_en_sentence_breaks(en_vocab, en_parser) without return types