code: def test_preview(doc):
      preview = doc._.preview
      assert isinstance(preview, str)
      assert preview.startswith("Doc")
  
imports: import pytest
  import spacy
  from textacy import load_spacy_lang, make_spacy_doc
label_desc: Use image node_id 4 for calling a global function with example usage: test_preview(doc) without return types