code: def test_direct_quotations(lang_en, text, exp):
      obs = list(extract.direct_quotations(lang_en(text)))
      assert all(
          hasattr(dq, attr)
          for dq in obs
          for attr in ["speaker", "cue", "content"]
      )
      obs_text = [
          (
              [tok.text for tok in speaker],
              [tok.text for tok in cue],
              content.text,
          )
          for speaker, cue, content in obs
      ]
      assert obs_text == exp
  
imports: import re
  import pytest
  from textacy import extract
label_desc: Use image node_id 4 for calling a global function with example usage: test_direct_quotations(lang_en, text, exp) without return types