code: def doc():
      text = (
          "Many years later, as he faced the firing squad, Colonel Aureliano Buendía was "
          "to remember that distant afternoon when his father took him to discover ice."
      )
      return textacy.make_spacy_doc(text, lang="en_core_web_sm")
  
file_path: textacy/tests/spacier/test_extensions.py
imports: from contextlib import nullcontext
  import catalogue
  import pytest
  from spacy.tokens import Doc
  import textacy
label_desc: Use image node_id 1 for calling a global function with example usage: doc() and returns: textacy