code: def test_dependency_parse_deps(nlp, text, heads, deps):
      doc = nlp(text)
      for token, headi, depi in itertools.zip_longest(doc, heads, deps):
          assert token.head.i == headi
          assert token.dep_ == depi
  
file_path: camphr/packages/camphr_knp/tests/test_dependency_parser.py
imports: from camphr_knp import create_knp_nlp
  import itertools
  import pytest
  from .utils import check_knp
label_desc: Use image node_id 4 for calling a global function with example usage: test_dependency_parse_deps(nlp, text, heads, deps) without return types