code: def test_extensions_exist(doc):
      for name in textacy.get_doc_extensions("spacier").keys():
          assert doc.has_extension(name)
          assert Doc.has_extension(name)
  
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 2 for calling a global function with example usage: test_extensions_exist(doc) without return types