code: def test_get_subjects_of_verb(spacy_doc):
      expected = [["tests"], ["I"], ["I"], ["programmers"], []]
      main_verbs = [
          tok
          for sent in spacy_doc.sents
          for tok in utils.get_main_verbs_of_sent(sent)
      ]
      observed = [
          [tok.text for tok in utils.get_subjects_of_verb(main_verb)]
          for main_verb in main_verbs
      ]
      for obs, exp in zip(observed, expected):
          assert obs == exp
  
file_path: textacy/tests/spacier/test_spacier_utils.py
imports: import pytest
  from spacy.tokens import Doc
  from textacy import load_spacy_lang
  from textacy.spacier import utils
label_desc: Use image node_id 5 for calling a global function with example usage: test_get_subjects_of_verb(spacy_doc) without return types