code: def test_dep(doc):
      exp = {"nsubj": 2, "ROOT": 2, "dobj": 2, "punct": 2}
      assert textacy.text_stats.counts.dep(doc) == exp
  
imports: import pytest
  import textacy
  import textacy.text_stats
label_desc: Use image node_id 5 for calling a global function with example usage: test_dep(doc) without return types