code: def test_parser_parse_subtrees(en_vocab, en_parser):
      words = [
          "The",
          "four",
          "wheels",
          "on",
          "the",
          "bus",
          "turned",
          "quickly",
      ]
      heads = [2, 2, 6, 2, 5, 3, 6, 6]
      deps = ["dep"] * len(heads)
      doc = Doc(en_vocab, words=words, heads=heads, deps=deps)
      assert len(list(doc[2].lefts)) == 2
      assert len(list(doc[2].rights)) == 1
      assert len(list(doc[2].children)) == 3
      assert len(list(doc[5].lefts)) == 1
      assert len(list(doc[5].rights)) == 0
      assert len(list(doc[5].children)) == 1
      assert len(list(doc[2].subtree)) == 6
  
imports: import pytest
  from numpy.testing import assert_equal
  from thinc.api import Adam
  from spacy import registry, util
  from spacy.attrs import DEP, NORM
  from spacy.lang.en import English
  from spacy.pipeline import DependencyParser
  from spacy.pipeline.dep_parser import DEFAULT_PARSER_MODEL
  from spacy.pipeline.tok2vec import DEFAULT_TOK2VEC_MODEL
  from spacy.tokens import Doc
  from spacy.training import Example
  from spacy.vocab import Vocab
  from ..util import apply_transition_sequence, make_tempdir
label_desc: Use image node_id 11 for calling a global function with example usage: test_parser_parse_subtrees(en_vocab, en_parser) without return types