code: def test_semistructured_statements(
      sss_doc, entity, cue, fragment_len_range, exp
  ):
      obs = list(
          extract.semistructured_statements(
              sss_doc,
              entity=entity,
              cue=cue,
              fragment_len_range=fragment_len_range,
          )
      )
      assert all(
          hasattr(sss, attr)
          for sss in obs
          for attr in ["entity", "cue", "fragment"]
      )
      obs_text = [
          (
              [tok.text for tok in e],
              [tok.text for tok in c],
              [tok.text for tok in f],
          )
          for e, c, f in obs
      ]
      assert obs_text == exp
  
imports: import re
  import pytest
  from textacy import extract
label_desc: Use image node_id 3 for calling a global function with example usage: test_semistructured_statements(sss_doc, entity, cue, fragment_len_range, exp) without return types